mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-26 09:17:55 +00:00
29 lines
681 B
Docker
29 lines
681 B
Docker
FROM gcr.io/distroless/static-debian12:latest as production
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
COPY ./bin/zdravko-${TARGETOS}-${TARGETARCH} /bin/zdravko
|
|
|
|
COPY LICENSE /LICENSE
|
|
COPY README.md /README.md
|
|
|
|
# Zdravko Server
|
|
ENV PORT=8080
|
|
EXPOSE 8080
|
|
# Temporal UI Server
|
|
EXPOSE 8223
|
|
# Temporal GRPC Server
|
|
EXPOSE 7233
|
|
|
|
# Volume to persist sqlite databases
|
|
# as well as the keyvalue database.
|
|
ENV SQLITE_DATABASE_PATH=/data/zdravko.db
|
|
ENV TEMPORAL_DATABASE_PATH=/data/temporal.db
|
|
ENV KEYVALUE_DATABASE_PATH=/data/keyvalue.db
|
|
VOLUME /data
|
|
|
|
ENV DATABASE_PATH=/data/zdravko.db
|
|
ENV TEMPORAL_DATABASE_PATH=/data/temporal.db
|
|
|
|
ENTRYPOINT ["/bin/zdravko"]
|
|
CMD ["--server", "--temporal", "--worker"]
|