-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
375 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
FROM python:3.12-slim | ||
|
||
RUN useradd containeruser | ||
RUN useradd appuser | ||
|
||
WORKDIR /home/containeruser | ||
|
||
COPY app app | ||
COPY govuk-frontend-flask.py config.py docker-entrypoint.sh requirements.txt ./ | ||
RUN pip install -r requirements.txt \ | ||
&& chmod +x docker-entrypoint.sh \ | ||
&& chown -R containeruser:containeruser ./ | ||
WORKDIR /home/appuser | ||
|
||
# Set environment variables | ||
ENV FLASK_APP=govuk-frontend-flask.py \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 | ||
|
||
USER containeruser | ||
COPY app app | ||
COPY govuk-frontend-flask.py config.py requirements.txt ./ | ||
RUN pip install -r requirements.txt \ | ||
&& chown -R appuser:appuser ./ | ||
|
||
EXPOSE 9876 | ||
ENTRYPOINT ["./docker-entrypoint.sh"] | ||
USER appuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.