2024-06-03 21:31:24 +00:00
|
|
|
FROM gcr.io/distroless/static-debian12:latest as production
|
2024-06-02 19:53:51 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
ARG TARGETOS
|
2024-02-16 21:31:00 +00:00
|
|
|
|
2024-06-02 19:53:51 +00:00
|
|
|
COPY ./bin/zdravko-${TARGETOS}-${TARGETARCH} /bin/zdravko
|
2024-02-16 21:31:00 +00:00
|
|
|
|
|
|
|
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
|
2024-05-29 19:28:37 +00:00
|
|
|
# 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
|
2024-02-16 21:31:00 +00:00
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
ENV DATABASE_PATH=/data/zdravko.db
|
|
|
|
ENV TEMPORAL_DATABASE_PATH=/data/temporal.db
|
|
|
|
|
2024-02-17 20:31:09 +00:00
|
|
|
ENTRYPOINT ["/bin/zdravko"]
|
2024-02-19 09:09:30 +00:00
|
|
|
CMD ["--server", "--temporal", "--worker"]
|