mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
* Make preview image * Use local build * Fix build * Release * Build dnote docker * Simplify * Document
20 lines
385 B
Docker
20 lines
385 B
Docker
FROM alpine:latest
|
|
|
|
ARG version
|
|
RUN test -n "$version"
|
|
|
|
# add dependency to execute a golang binary with dynamical linking.
|
|
RUN apk add --no-cache \
|
|
libc6-compat
|
|
|
|
WORKDIR dnote
|
|
|
|
COPY dnote_server_"$version"_linux_amd64.tar.gz .
|
|
RUN tar -xvzf dnote_server_"$version"_linux_amd64.tar.gz
|
|
|
|
COPY entrypoint.sh .
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
CMD ./dnote-server start
|
|
|
|
EXPOSE 3000
|