forked from tapis-project/tapis-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 750 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (27 loc) · 750 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
30
31
32
33
34
35
36
37
38
# syntax=docker/dockerfile:1.7-labs
## ^ for --exclude on COPY
FROM node:22.4.0 as build-stage
RUN mkdir tapisui
WORKDIR /tapisui
# Copy the rest of the files
COPY \
--exclude=**node_modules* \
--exclude=**dist* \
--exclude=./.vscode \
--exclude=./__pycache__ \
--exclude=./__mocks__ \
--exclude=./.github \
--exclude=./build \
--exclude=./deploy \
./ ./
# Install all files in the package json
RUN npm run init-project container
RUN npm run init-project twice
RUN npm run build
# CMD ["sleep", "1000000"]
FROM nginx as production-stage
# RUN apt-get update
# RUN apt-get install -y vim
COPY --from=build-stage /tapisui/dist /usr/share/nginx/html
# COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]