docker-osm/flask_app/Dockerfile

18 wiersze
316 B
Docker

FROM python:3.9-slim
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . /app/
# Expose the port the app runs on
EXPOSE 5000
CMD ["python", "app.py"]