Add Dockerfile
This commit is contained in:
parent
589f3f9b68
commit
565b2adeb1
1 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
ARG NODE_VERSION=20
|
||||||
|
ARG ALPINE_VERSION=3.19
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS builder
|
||||||
|
WORKDIR /build-stage
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
# Copy the the files you need
|
||||||
|
COPY . ./
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:stable-alpine${ALPINE_VERSION}
|
||||||
|
COPY --from=builder /build-stage/build /usr/share/nginx/html/
|
Loading…
Add table
Add a link
Reference in a new issue