Am I able to use indentation in a Dockerfile
?
Is there anything wrong with using spaces for indenting like this?
FROM python:3.8-buster
RUN pip --no-cache-dir install poetry gunicorn
WORKDIR /app
COPY poetry.toml pyproject.toml poetry.lock /app/
RUN poetry export --dev -f requirements.txt > requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app/src
COPY src /app/src
RUN ./manage.py collectstatic --noinput --clear
CMD ["gunicorn", "--bind", ":8000", "wsgi:application"]
Building such docker image seems to work fine.