Skip to content

Commit

Permalink
Merge pull request #81 from django-stars/dockerfile-clean-up
Browse files Browse the repository at this point in the history
Fix "FromAsCasing: 'as' and 'FROM' keywords' casing do not match" warning
  • Loading branch information
denys-chura authored Oct 4, 2024
2 parents 021022b + ab21937 commit b0c0868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions {{ cookiecutter.project_slug }}/docker/images/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:{{ cookiecutter.python_version.lower()}}-slim as base
FROM python:{{ cookiecutter.python_version.lower()}}-slim AS base

ENV PYTHONUNBUFFERED 1

Expand Down Expand Up @@ -31,12 +31,12 @@ RUN chmod +x /opt/docker/entrypoint.sh
ENTRYPOINT ["/opt/docker/entrypoint.sh"]


FROM base as local
FROM base AS local

RUN poetry install --no-root --no-cache --no-ansi --no-interaction --with dev \
&& poetry cache clear pypi --all


FROM base as live
FROM base AS live

COPY ./api /opt/api

0 comments on commit b0c0868

Please sign in to comment.