mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
20 lines
337 B
Docker
20 lines
337 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
|
|
|
|
WORKDIR dnote
|
|
|
|
COPY "$tarballName" .
|
|
RUN tar -xvzf "$tarballName"
|
|
|
|
COPY entrypoint.sh .
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
CMD ./dnote-server start
|
|
|
|
EXPOSE 3000
|