forked from tapis-project/tapis-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
28 lines (23 loc) · 687 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
28 lines (23 loc) · 687 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
# 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=./packages**node_modules* \
--exclude=./.vscode \
--exclude=./__pycache__ \
--exclude=./__mocks__ \
--exclude=./.github \
--exclude=./build \
--exclude=./deploy \
./ ./
# Only in prod do we exclude prebuilt files
# --exclude=**node_modules* \
# --exclude=**dist* \
# Still need this or we get a sha calc error, race condition?
#--exclude=./packages**node_modules* \
# Install all files in the package json
RUN npm run init-project container
ENTRYPOINT ["npm", "run", "start-dev"]