-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 819 Bytes
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
FROM ubuntu:20.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y wget git cmake build-essential python3 python3-distutils swig zlib1g-dev doxygen default-jre pkg-config
RUN wget https://deb.nodesource.com/setup_20.x && chmod +x ./setup_20.x && ./setup_20.x
RUN apt-get install -y nodejs
RUN npm install -g yarn
ADD . /app
EXPOSE 3000
WORKDIR /app/
RUN yarn run build-deps
# RUN python3.8 dependencies/build.py
# WORKDIR /app
# WORKDIR /app/simulator
# RUN yarn install --cache-folder ./.yarncache && yarn build; true
RUN yarn install --cache-folder ./.yarncache
RUN yarn run build-i18n
RUN export NODE_OPTIONS=--openssl-legacy-provider && yarn build
CMD node express.js