remove unused files and dependencies

This commit is contained in:
Sam
2020-09-16 15:04:22 +02:00
parent b411d4d547
commit 640385cdb7
17 changed files with 54 additions and 2560 deletions

View File

@ -1,31 +0,0 @@
FROM python:3.7
MAINTAINER SamR1@users.noreply.github.com
# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# add requirements
COPY ./pyproject.toml /usr/src/app/pyproject.toml
COPY ./poetry.lock /usr/src/app/poetry.lock
# add environment variables
ARG UI_URL
ARG EMAIL_URL
ARG SENDER_EMAIL
ENV UI_URL $UI_URL
ENV EMAIL_URL $EMAIL_URL
ENV SENDER_EMAIL $SENDER_EMAIL
# install requirements
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --no-interaction --quiet
# add app --no-interaction
COPY . /usr/src/app
# run server
CMD flask run --with-threads -h 0.0.0.0

View File

@ -1,5 +0,0 @@
FROM postgres:11.2
MAINTAINER SamR1@users.noreply.github.com
COPY create.sql /docker-entrypoint-initdb.d