dnote/host/docker/Dockerfile
Sung c3214f12f0
Fix missing assets in a server release (#634)
* Fix missing assets in a server release

* Fix missing library error
2023-03-04 13:26:36 +11:00

21 lines
355 B
Docker

FROM alpine:latest
ARG tarballName
RUN test -n "$tarballName"
# add dependency to execute a golang binary with dynamical linking.
RUN apk add --no-cache \
libc6-compat \
gcompat
WORKDIR dnote
COPY "$tarballName" .
RUN tar -xvzf "$tarballName"
COPY entrypoint.sh .
ENTRYPOINT ["./entrypoint.sh"]
CMD ./dnote-server start
EXPOSE 3000