feat: add docker configuration
This commit is contained in:
parent
821712f43b
commit
cf2f624ae4
21 changed files with 232 additions and 13 deletions
12
Foxnouns.Frontend/Dockerfile
Normal file
12
Foxnouns.Frontend/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM docker.io/node:22
|
||||
|
||||
RUN mkdir -p /app/node_modules && chown -R node:node /app
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
USER node
|
||||
RUN yarn
|
||||
COPY --chown=node:node . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
CMD ["yarn", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue