-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (34 loc) · 1.21 KB
/
Dockerfile
File metadata and controls
48 lines (34 loc) · 1.21 KB
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
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.8
WORKDIR /app
RUN apt update \
# curl: command line tool for transferring data with URL syntax
# make: utility for directing compilation
# default-jdk-headless: Standard Java or Java compatible Development Kit (headless)
# ant: Java based build tool like make
# nodejs: evented I/O for V8 javascript - runtime executable
# php: server-side, HTML-embedded scripting language (default)
&& apt-get install -y curl make default-jdk-headless ant nodejs php \
# add node source.
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
# install npmjs.
&& curl -L https://www.npmjs.com/install.sh | sh
# install testsuite dependencies
# phpunit: php testsuite
# jest: node testsuite
# junit4: java testsuite requirements
RUN apt install -y phpunit junit4 \
&& npm install -g jest
# set env CLASSPATH required by ant (java build tool)
ENV CLASSPATH=/usr/share/java/junit4.jar
# copy dependencies for server
# COPY requirements.txt .
COPY package*.json .
# install dependencies for server
# RUN pip install -r requirements.txt
RUN npm install
COPY . .
ARG PORT=8000
ENV PORT=$PORT
EXPOSE $PORT
RUN npm run build
CMD node build/bundle.js