4
0
This repository has been archived on 2020-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
extractor-service/Dockerfile
Torma Kristóf 82081f6fe8
Some checks failed
continuous-integration/drone/push Build is failing
Fix Dockerfile
2020-03-10 16:12:15 +01:00

29 lines
626 B
Docker

# 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
ARG RELEASE_ID
ENV RELEASE_ID ${RELEASE_ID:-""}
#Copy requirements to install
COPY requirements.txt ./
# Install production dependencies.
RUN pip install -r requirements.txt
COPY ./src ./src
EXPOSE 8080
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "1", "--threads", "8", "app:app"]