forked from Akasiek/Random-Plex-Movie
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
22 lines (22 loc) · 786 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Install required system packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
arp-scan \
iputils-ping \
netcat-openbsd \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Make port 4000 available to the world outside this container
EXPOSE 4000
# Volume for persistent data
VOLUME /app/data
# Run the application with Gunicorn
CMD ["gunicorn", "-k", "eventlet", "-w", "1", "-b", "0.0.0.0:4000", "movie_selector:app"]