forked from TWS/kalkutago
Build custom image for client dev server
This commit is contained in:
parent
e84e9e6594
commit
741429630b
3 changed files with 14 additions and 4 deletions
2
client/.dockerignore
Normal file
2
client/.dockerignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
dist/
|
||||
10
client/Dockerfile
Normal file
10
client/Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM node
|
||||
# user node has UID 1000 in the container
|
||||
USER node
|
||||
EXPOSE 5173
|
||||
VOLUME /client
|
||||
WORKDIR /client
|
||||
ADD package.json yarn.lock tsconfig.json tsconfig.node.json vite.config.ts /client/
|
||||
RUN yarn
|
||||
ADD public/ src/ index.html /client/
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue