Skip to content

Commit e45561a

Browse files
authored
Update Dockerfile
1 parent 856163f commit e45561a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ ENV PROJECT_HOME=/data
44
RUN mkdir /data
55

66
# Set the working directory in the container
7-
WORKDIR /usr/local/bin
7+
WORKDIR ${PROJECT_HOME}
88

9-
# Copy the script into the container at /usr/src/app
10-
COPY ./script.py /usr/local/bin/
9+
# Install runtime dependencies
10+
COPY requirements.txt .
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Copy necessary files
14+
COPY main.py /usr/local/bin
1115

1216
# Run the script when the container launches
13-
ENTRYPOINT ["python", "/usr/local/bin/script.py"]
17+
ENTRYPOINT ["python", "/usr/local/bin/main.py"]

0 commit comments

Comments
 (0)