Skip to content

Commit f61e26e

Browse files
committed
Fix Dockerfile code smells
Fixes #39 The solution has been generated using github copilot workspace. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/accso/SecureCheckPlus/issues/39?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 0fb4392 commit f61e26e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ RUN apk update --no-cache \
1818

1919
ENTRYPOINT ["sh", "/entrypoint.sh"]
2020

21-
CMD python manage.py runserver 0.0.0.0:8000
21+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
2222

23-
FROM dev as prod
23+
FROM dev AS prod
2424
#ARG is required for the settings.py. Otherwise the build will fail, because required env variables have not been set
2525
ARG BUILD=1
2626

@@ -32,4 +32,4 @@ USER baseuser
3232
EXPOSE 8000
3333

3434
# Overwrites previous CMD from stage "dev"
35-
#CMD gunicorn securecheckplus.wsgi:application --bind 0.0.0.0:8000 --workers=2 --threads=2 --log-level INFO
35+
#CMD ["gunicorn", "securecheckplus.wsgi:application", "--bind", "0.0.0.0:8000", "--workers=2", "--threads=2", "--log-level", "INFO"]

0 commit comments

Comments
 (0)