project layout done
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-25 01:19:22 +01:00
parent 265d43f79b
commit 03bf58bab3
8 changed files with 177 additions and 13 deletions

View File

@ -1,27 +1,18 @@
# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.8-slim
# Copy local code to the container image.
ENV APP_HOME /app
ENV PIP_NO_CACHE_DIR=true
# Set timezone
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR $APP_HOME
WORKDIR /app
ARG RELEASE_ID
ENV RELEASE_ID ${RELEASE_ID:-""}
#Copy requirements to install
COPY requirements.txt ./
# Install production dependencies.
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY ./src ./src
COPY ./src .
EXPOSE 8080