fix syntax in Dockerfile

This commit is contained in:
mein Name 2025-03-01 10:39:55 -05:00 committed by Henri Dickson
parent ef7b2d2ac4
commit 9291c7797a

View file

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM python:3.12-slim as build FROM python:3.12-slim AS build
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
@ -24,15 +24,15 @@ RUN python -m venv /takahe-venv
RUN --mount=type=cache,sharing=locked,target=/root/.cache /takahe-venv/bin/python3 -m pip install --upgrade -r requirements.lock RUN --mount=type=cache,sharing=locked,target=/root/.cache /takahe-venv/bin/python3 -m pip install --upgrade -r requirements.lock
# runtime stage # runtime stage
FROM python:3.12-slim as runtime FROM python:3.12-slim AS runtime
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
RUN --mount=type=cache,sharing=locked,target=/var/cache/apt-run apt-get update \ RUN --mount=type=cache,sharing=locked,target=/var/cache/apt-run apt-get update \
&& apt-get install -y --no-install-recommends libpq-dev \ && apt-get install -y --no-install-recommends libpq-dev \
busybox \ busybox \
nginx \ nginx \
gettext-base gettext-base
RUN busybox --install RUN busybox --install
# postgresql and redis cli are not required, but install for development convenience # postgresql and redis cli are not required, but install for development convenience