masto-rss-ex/Dockerfile

18 lines
373 B
Docker
Raw Normal View History

2023-12-04 20:58:27 -05:00
# Use an appropriate base image with Python pre-installed
2023-12-05 13:36:48 -05:00
FROM alpine:3.18
2023-12-04 20:58:27 -05: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 13:36:48 -05:00
RUN apk add python3
RUN apk add py3-pip
2023-12-04 20:58:27 -05:00
RUN pip install -r requirements.txt
2023-12-05 13:36:48 -05:00
# Run Python script
2023-12-04 20:58:27 -05:00
CMD ["python", "main.py"]