Skip to content

Commit 74689f6

Browse files
Edit the dockerfile
1 parent a23b7f5 commit 74689f6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Dockerfile

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
FROM ubuntu:latest
1+
FROM python:3.10-slim
22

3+
# Install necessary packages
34
RUN apt-get update && apt-get install -y \
4-
python3.10 \
5-
python3-pip \
6-
python3-dev \
75
git \
86
&& apt-get clean \
97
&& rm -rf /var/lib/apt/lists/*
108

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
9+
# Install Python packages in the system environment
10+
RUN pip install --no-cache-dir PyYAML
1511

12+
# Copy your Python script and entrypoint
1613
COPY feed.py /usr/bin/feed.py
1714
COPY entrypoint.sh /entrypoint.sh
1815

16+
# Set the entrypoint for the container
1917
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)