chore: frontend docker setup
.dockerignore en .dockerfile van de frontend ingesteld
This commit is contained in:
parent
1745828487
commit
987036946e
2 changed files with 20 additions and 0 deletions
7
frontend/.dockerignore
Normal file
7
frontend/.dockerignore
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
**/node_modules/
|
||||||
|
**/dist
|
||||||
|
.git
|
||||||
|
npm-debug.log
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.env
|
13
frontend/frontend.dockerfile
Normal file
13
frontend/frontend.dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# build stage
|
||||||
|
FROM node:22 as build-stage
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# production stage
|
||||||
|
FROM nginx:stable as production-stage
|
||||||
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Add table
Add a link
Reference in a new issue