forked from hyperonym/ratus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (29 loc) · 872 Bytes
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
FROM scratch
# Define arguments for building multi-arch images
ARG TARGETPLATFORM
# Copy artifacts to the container
COPY bin/${TARGETPLATFORM}/* /
# Expose ports
EXPOSE 80
# Provide default environment variables
ENV GIN_MODE="release"
ENV ENGINE="memdb"
ENV PORT="80"
ENV ADDR="0.0.0.0"
ENV CHORE_INTERVAL="10s"
ENV CHORE_INITIAL_DELAY="10s"
ENV CHORE_INITIAL_RANDOM="true"
ENV PAGINATION_MAX_LIMIT="100"
ENV PAGINATION_MAX_OFFSET="10000"
ENV MEMDB_SNAPSHOT_PATH="/ratus.db"
ENV MEMDB_SNAPSHOT_INTERVAL="5m"
ENV MEMDB_RETENTION_PERIOD="72h"
ENV MONGODB_URI="mongodb://mongo:27017"
ENV MONGODB_DATABASE="ratus"
ENV MONGODB_COLLECTION="tasks"
ENV MONGODB_RETENTION_PERIOD="72h"
ENV MONGODB_DISABLE_INDEX_CREATION="false"
ENV MONGODB_DISABLE_AUTO_FALLBACK="false"
ENV MONGODB_DISABLE_ATOMIC_POLL="false"
# Specify entrypoint and default parameters
ENTRYPOINT ["/ratus"]