Skip to content

Commit 96bd80f

Browse files
committed
adds docker config
1 parent 5c1092d commit 96bd80f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Install latest version of node
2+
FROM continuumio/anaconda3:latest
3+
4+
RUN apt-get update && apt-get install -y \
5+
build-essential \
6+
ca-certificates \
7+
curl \
8+
sudo \
9+
openssl \
10+
libssl-dev libffi-dev \
11+
--no-install-recommends
12+
13+
# Create directory for app
14+
RUN mkdir /app
15+
16+
# Set as current directory for RUN, ADD, COPY commands
17+
WORKDIR /app
18+
19+
# Add to PATH
20+
ENV PATH /app:$PATH
21+
22+
# Add requirements.txt from upstream
23+
ADD requirements.txt /app
24+
RUN pip install -r /app/requirements.txt
25+
26+
# Add entire student fork (overwrites previously added package.json)
27+
ARG SUBMISSION_SUBFOLDER
28+
ADD $SUBMISSION_SUBFOLDER /app
29+
30+
# Overwrite files in student fork with upstream files
31+
ADD test.sh /app
32+
ADD tests /app/tests
33+
34+
# User defined requirements
35+
# RUN make init

test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest

0 commit comments

Comments
 (0)