Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker setup for wagtail guide #239

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ RUN npm ci
COPY ./apps/frontend/static_src/ ./apps/frontend/static_src/
RUN npm run build


# We use Debian images because they are considered more stable than the alpine
# ones becase they use a different C compiler. Debian images also come with
# ones because they use a different C compiler. Debian images also come with
# all useful packages required for image manipulation out of the box. They
# however weigh a lot, approx. up to 1.5GiB per built image.
FROM python:3.9 as production

# Install dependency needed to run guide init script
RUN apt-get update && apt-get install -y gettext

ARG POETRY_HOME=/opt/poetry
ARG POETRY_INSTALL_ARGS="--without dev"

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ docker-exec:
docker exec -it guide_latest /bin/bash

docker-init:
docker exec -it guide_latest /bin/bash -c "make backend"
docker exec -it guide_latest /bin/bash -c "make backend && make buildfixtures"