forked from vsimakhin/web-logbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.Dockerfile
More file actions
25 lines (17 loc) · 758 Bytes
/
Copy pathbuild.Dockerfile
File metadata and controls
25 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine
LABEL org.opencontainers.image.source="https://github.com/vsimakhin/web-logbook" \
org.opencontainers.image.authors="Vladimir Simakhin" \
org.opencontainers.image.title="Web Logbook" \
org.opencontainers.image.description="Container image for Web Logbook https://github.com/vsimakhin/web-logbook"
WORKDIR /web-logbook
RUN apk update --no-cache && \
apk add ca-certificates libssl3 openssl && \
adduser -g "WebLogbook" -s /usr/sbin/nologin -D -H weblogbook && \
chown -R weblogbook /web-logbook
ARG TARGETARCH
COPY ./dist/web-logbook-linux-${TARGETARCH}/web-logbook /web-logbook/web-logbook
VOLUME [ "/data", "/certs" ]
EXPOSE 4000
USER weblogbook
ENTRYPOINT ["./web-logbook" ]
CMD ["-dsn", "/data/web-logbook.sql"]