We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23b7f5 commit 74689f6Copy full SHA for 74689f6
Dockerfile
@@ -1,19 +1,17 @@
1
-FROM ubuntu:latest
+FROM python:3.10-slim
2
3
+# Install necessary packages
4
RUN apt-get update && apt-get install -y \
- python3.10 \
5
- python3-pip \
6
- python3-dev \
7
git \
8
&& apt-get clean \
9
&& rm -rf /var/lib/apt/lists/*
10
11
-# Create a virtual environment and activate it
12
-RUN python3.10 -m venv /venv
13
-
14
-RUN /venv/bin/pip install --no-cache-dir PyYAML
+# Install Python packages in the system environment
+RUN pip install --no-cache-dir PyYAML
15
+# Copy your Python script and entrypoint
16
COPY feed.py /usr/bin/feed.py
17
COPY entrypoint.sh /entrypoint.sh
18
+# Set the entrypoint for the container
19
ENTRYPOINT ["/entrypoint.sh"]
0 commit comments