Skip to content

Commit e7a13a9

Browse files
committed
docker: add support for ENVIRONMENT-based config selection
1 parent 7c00062 commit e7a13a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM python:3.12-slim
22

3+
ENV ENVIRONMENT=docker
34
ENV PORT=8000
45

56
RUN groupadd --gid 10001 app \
@@ -44,4 +45,4 @@ HEALTHCHECK CMD curl -sfk http://localhost:$PORT -o/dev/null
4445

4546
# run service
4647
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
47-
CMD ["--config", "config-docker.toml"]
48+
CMD ["--config", "config-${ENVIRONMENT}.toml"]

0 commit comments

Comments
 (0)