Skip to content

Instantly share code, notes, and snippets.

@guilhermecarvalhocarneiro
Created August 3, 2022 22:48
Show Gist options
  • Save guilhermecarvalhocarneiro/dd96297c5df2272d0b04ea08c402f497 to your computer and use it in GitHub Desktop.
Save guilhermecarvalhocarneiro/dd96297c5df2272d0b04ea08c402f497 to your computer and use it in GitHub Desktop.
DockerFile para ambiente de desenvolvimento
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.9
EXPOSE 8000
ENV SECRET_KEY=!u^8mqq_pm%jttx@-w+%q9bk9%iij3hw2(+$w13i*ptn#3lm+=
ENV DB_ENGINE=django.db.backends.postgresql_psycopg2
ENV DB_NAME=iteea_db
ENV DB_USER=postgres
ENV DB_PASSWORD=123
ENV DEBUG=True
ENV DB_PORT=5432
ENV ALLOWED_HOSTS=.localhost,*
ENV API_PATH=http://localhost:8080/api/
ENV SENTRY_DNS=''
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
# Install pip requirements
COPY requirements.txt .
COPY requirements-dev.txt .
RUN python -m pip install --upgrade pip
RUN python -m pip install -r requirements.txt
RUN python -m pip install -r requirements-dev.txt
WORKDIR /app
COPY . /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment