22 lines
366 B
Docker
22 lines
366 B
Docker
FROM python:3-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir flask requests werkzeug
|
|
|
|
# Copy files
|
|
COPY . /app/
|
|
|
|
# Set environment variables
|
|
ENV FLASK_PORT=5142 \
|
|
FLASK_HOST=0.0.0.0 \
|
|
FLASK_ENV=production \
|
|
FLASK_DEBUG=False \
|
|
ENABLE_PROXY=false
|
|
|
|
# Expose port
|
|
EXPOSE 5142
|
|
|
|
# Run the application
|
|
CMD ["python", "app.py"] |