Skip to content

Commit d73ad91

Browse files
Michael JohnsonMichael Johnson
authored andcommitted
updating dockerfile example to replace ubuntu base image with python and to reorganize requirements.txt
1 parent bc635a9 commit d73ad91

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,22 +235,18 @@ To use the latest version of pyClowder we recommend choosing a base image of you
235235

236236
```
237237
# Base image
238-
FROM ubuntu:20.04
238+
FROM python:3-slim
239239
240240
# Creating workdir
241241
WORKDIR /home/clowder
242242
243-
# Adding necessary code to container under workdir
244-
COPY <MY.CODE>.py extractor_info.json /home/clowder/
245-
246-
# Install pip
247-
RUN apt-get update && \
248-
apt-get install -y python3-pip
249-
250243
# Install pyClowder and any other python dependencies
251244
COPY requirements.txt .
252245
RUN pip3 install -r requirements.txt
253246
247+
# Adding necessary code to container under workdir
248+
COPY <MY.CODE>.py extractor_info.json /home/clowder/
249+
254250
# Command to be run when container is run
255251
CMD python3 <MY.CODE>.py
256252
```

0 commit comments

Comments
 (0)