masto-rss-ex/Dockerfile

18 lines
373 B
Docker
Raw Normal View History

2023-12-05 01:58:27 +00:00
# Use an appropriate base image with Python pre-installed
2023-12-05 18:36:48 +00:00
FROM alpine:3.18
2023-12-05 01:58:27 +00:00
# Set the working directory inside the container
WORKDIR /app
# Copy the entire current directory into the container at /app
COPY . /app
# Install any Python dependencies
2023-12-05 18:36:48 +00:00
RUN apk add python3
RUN apk add py3-pip
2023-12-05 01:58:27 +00:00
RUN pip install -r requirements.txt
2023-12-05 18:36:48 +00:00
# Run Python script
2023-12-05 01:58:27 +00:00
CMD ["python", "main.py"]