We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f575d5f commit 70968e5Copy full SHA for 70968e5
1 file changed
docker/Dockerfile
@@ -31,13 +31,15 @@ WORKDIR /app/
31
COPY --from=builder /app/main .
32
COPY ./config/config.example.json ./config.json
33
34
+# Variables
35
+ENV CONFIG_PATH=/app/config.json
36
+ENV PORT=8080
37
+
38
# Set ownership and permissions
39
RUN chown -R appuser:appuser /app && chmod -R 755 /app
40
41
# Switch to non-root user
42
USER appuser
43
-ENV PORT=8080
-
44
# Command to run
-CMD ["./main", "-config", "config.json"]
45
+CMD ["sh", "-c", "./main -config ${CONFIG_PATH}"]
0 commit comments