init codebase

This commit is contained in:
grillazz
2021-03-26 11:07:52 +01:00
parent 7e19d0f722
commit 51a296901f
21 changed files with 367 additions and 1 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# Pull base image
FROM python:3.9-buster as builder
# Set environment variables
WORKDIR /pipfiles
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
# Install pipenv
RUN set -ex && pip install pipenv --upgrade
# Upgrde pip, setuptools and wheel
RUN set -ex && pip install --upgrade pip setuptools wheel
# Install dependencies
RUN set -ex && pipenv install --system --sequential --ignore-pipfile --dev
FROM builder as final
WORKDIR /app
COPY ./the_app/ /app/
COPY ./tests/ /app/
COPY .env /app/
COPY .secrets /app/
RUN set -ex && bash -c "eval $(grep 'PYTHONDONTWRITEBYTECODE' .env)"
RUN set -ex && bash -c "eval $(grep 'PYTHONUNBUFFERED' .env)"