Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM python:3.6
FROM python:3.6-slim

RUN apt-get -y update && apt-get -y install ffmpeg
# Security: Be specific on version, so use ffmpeg=<version>
RUN apt-get update && apt-get -y upgrade && apt-get install -y ffmpeg
# RUN apt-get -y update && apt-get -y install git wget python-dev python3-dev libopenmpi-dev python-pip zlib1g-dev cmake python-opencv

ENV CODE_DIR /root/code

# Security: Preserve the ownership of the files and directories, so that the files are owned by the right user and group.
# So use COPY --chown=<user:group> . $CODE_DIR/baselines
COPY . $CODE_DIR/baselines
WORKDIR $CODE_DIR/baselines

Expand All @@ -13,6 +16,6 @@ RUN rm -rf __pycache__ && \
find . -name "*.pyc" -delete && \
pip install 'tensorflow < 2' && \
pip install -e .[test]


CMD /bin/bash
RUN apt-get clean
CMD ["/bin/bash"]