Skip to content

Commit

Permalink
feat(ci/cd): expose needed port in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Khenziii committed May 26, 2024
1 parent 9995430 commit 182ad63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ COPY . .

RUN pip install --no-cache-dir -r requirements.txt

# AFAIK, there's no way to expose
# a port condtionally. The container
# has to expose this, even if it
# won't run in the WEB_SERVER mode.
EXPOSE 8080

RUN if [ "$WEB_SERVER" = "false" ]; then \
rm docker-entrypoint.py; \
else \
Expand Down

0 comments on commit 182ad63

Please sign in to comment.