-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 613 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 613 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
28
29
FROM --platform=linux/amd64 ubuntu:22.04
#FROM --platform=linux/amd64 pdal/pdal:latest
RUN apt update && apt install -y curl pdal gdal-bin
RUN curl -sL https://deb.nodesource.com/setup_20.x -o node_setup.sh && \
bash node_setup.sh && \
apt install -y nodejs
# create non-root node user?
# useradd -ms /bin/bash node
# USER node
# RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /app
COPY package*.json /app
COPY client/package*.json /app/client/
COPY server/package*.json /app/server/
RUN npm install --omit=dev
COPY . /app
RUN npm run build
CMD ["npm", "start"]