generated from fabalexsie/WebAppStarterTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 784 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
FROM node:18.14.2
# INSTALL PYTHON DEPENDENCIES
RUN apt-get update && apt-get install python3 python3-pip -y
#RUN pip3 install -r python/requirements.txt
RUN pip3 install usd2gltf
RUN pip3 install pygltflib
# INSTALL NPM DEPENDENCIES
WORKDIR /app/frontend
COPY frontend/package.json frontend/package-lock.json frontend/tsconfig.json ./
RUN npm install
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
RUN npm install ts-node
# BUILD FRONTEND
WORKDIR /app/frontend
COPY frontend/public ./public
COPY frontend/src ./src
RUN npm run build
# COPY SRC FILES SERVER
WORKDIR /app
COPY src ./src
COPY scripts ./scripts
# COPY PYTHON FILES
COPY python ./python
# deactivate the usage of the conda environment
ENV IS_DEV=false
ENTRYPOINT ["npm", "run" ,"production"]