Fix: Typo in Dockerfile
This commit is contained in:
15
Dockerfile
15
Dockerfile
@ -33,13 +33,10 @@ RUN \
|
|||||||
FROM python:3.14-slim AS runner
|
FROM python:3.14-slim AS runner
|
||||||
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt-get update \
|
||||||
&& apt install -y --no-install-recommends curl \
|
&& apt-get install -y --no-install-recommends curl locales \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen \
|
||||||
apt update && \
|
&& dpkg-reconfigure --frontend=noninteractive locales \
|
||||||
apt install -y locales && \
|
|
||||||
sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen && \
|
|
||||||
dpkg-reconfigure --frontend=noninteractive locales \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV LANG=en_IN
|
ENV LANG=en_IN
|
||||||
@ -79,7 +76,7 @@ COPY --from=builder /frontend/browser /app/static
|
|||||||
# Sync the project
|
# Sync the project
|
||||||
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
|
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
--mount=type=bind,source=brtewman/uv.lock,target=uv.lock \
|
--mount=type=bind,source=brewman/uv.lock,target=uv.lock \
|
||||||
--mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \
|
--mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \
|
||||||
uv sync --locked
|
uv sync --locked
|
||||||
|
|
||||||
@ -96,4 +93,4 @@ ENTRYPOINT ["docker-entrypoint.sh"]
|
|||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
||||||
CMD curl -fsS http://localhost/health || kill -s 15 1
|
CMD curl -fsS http://localhost/health || kill -s 15 1
|
||||||
|
|
||||||
CMD ["gunicorn", "brtewman.main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--config", "./gunicorn.conf.py", "--log-config", "./logging.conf"]
|
CMD ["gunicorn", "brewman.main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--config", "./gunicorn.conf.py", "--log-config", "./logging.conf"]
|
||||||
|
|||||||
Reference in New Issue
Block a user