forked from Ada-C19/task-list-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 825 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
30
31
32
33
34
35
36
37
# 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
RUN apt-get update && apt-get install -y postgresql-client
# 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