Skip to content

Commit ca95d40

Browse files
switch shit around in dockerfile
1 parent 3e84dab commit ca95d40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ FROM python:slim
44
# Set the working directory in the container
55
WORKDIR /app
66

7-
# Copy requirements file and install dependencies
8-
COPY requirements.txt ./
9-
RUN pip install --no-cache-dir -r requirements.txt
10-
117
# Add user so we don't need --no-sandbox.
128
RUN groupadd clowdertech && useradd -g clowdertech clowdertech \
139
&& mkdir -p /home/clowdertech/Downloads /app \
1410
&& chown -R clowdertech:clowdertech /home/clowdertech \
1511
&& chown -R clowdertech:clowdertech /app
1612

13+
# Copy requirements file and install dependencies
14+
COPY requirements.txt ./
15+
RUN pip install --no-cache-dir -r requirements.txt
16+
1717
# Run everything after as non-privileged user.
1818
USER clowdertech
1919

0 commit comments

Comments
 (0)