Make a deployable version

This commit is contained in:
Konstantin 2024-03-12 18:14:57 +01:00
parent 92475c508b
commit 17630e965b
8 changed files with 86 additions and 7 deletions

View file

@ -2,7 +2,7 @@
FROM python:3.8.1-slim-buster
# Add user that will be used in the container.
RUN useradd wagtail
# RUN useradd wagtail
# Port used by this container to serve HTTP.
EXPOSE 8000
@ -37,13 +37,13 @@ WORKDIR /app
# Set this directory to be owned by the "wagtail" user. This Wagtail project
# uses SQLite, the folder needs to be owned by the user that
# will be writing to the database file.
RUN chown wagtail:wagtail /app
# RUN chown wagtail:wagtail /app
# Copy the source code of the project into the container.
COPY --chown=wagtail:wagtail . .
COPY . .
# Use user "wagtail" to run the build commands below and the server itself.
USER wagtail
# USER wagtail
# Collect static files.
RUN python manage.py collectstatic --noinput --clear