Skip to content

Commit

Permalink
adds docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
tildeee committed Jan 6, 2021
1 parent 5c1092d commit 96bd80f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Install latest version of node
FROM continuumio/anaconda3:latest

RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
sudo \
openssl \
libssl-dev libffi-dev \
--no-install-recommends

# Create directory for app
RUN mkdir /app

# Set as current directory for RUN, ADD, COPY commands
WORKDIR /app

# Add to PATH
ENV PATH /app:$PATH

# Add requirements.txt from upstream
ADD requirements.txt /app
RUN pip install -r /app/requirements.txt

# Add entire student fork (overwrites previously added package.json)
ARG SUBMISSION_SUBFOLDER
ADD $SUBMISSION_SUBFOLDER /app

# Overwrite files in student fork with upstream files
ADD test.sh /app
ADD tests /app/tests

# User defined requirements
# RUN make init
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest

0 comments on commit 96bd80f

Please sign in to comment.