dnote/host/docker/Dockerfile
Sung Won Cho 39d18638a9
Build Docker image (#316)
* Make preview image

* Use local build

* Fix build

* Release

* Build dnote docker

* Simplify

* Document
2019-11-18 16:59:53 +08:00

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