-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 732 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Install latest version of node (older versions are not guaranteed to work with Learn)
FROM node:latest
# Install bash (must be installed for alpine builds)
# RUN apk update && apk add bash
# Create directory for app
RUN mkdir /app
# Set as current directory for RUN, ADD, COPY commands
WORKDIR /app
# Add to PATH
ENV PATH /app/node_modules/.bin:$PATH
# Add package.json from upstream
ADD package.json /app
# Install dependencies
RUN npm install
# 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 package.json /app
ADD src/data_structures/test /app/src/data_structures/test