You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ensure that Python outputs everything that's printed inside
# the application rather than buffering it.
ENV PYTHONUNBUFFERED 1
ENV APP_ROOT /code
RUN useradd -m -d ${APP_ROOT} celery_user
WORKDIR ${APP_ROOT}
# Copy in your requirements file
ADD requirements.txt /requirements.txt
# Install build deps, then run `pip install`, then remove unneeded build deps all in a single step. Correct the path to your production requirements file, if needed.
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /requirements.txt
# Copy your application code to the container (make sure you create a .dockerignore file if any large files or directories should be excluded)