added dockerized build chain
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM alpine AS npm
|
||||
|
||||
RUN apk add npm
|
||||
|
||||
|
||||
FROM npm AS npm-installed
|
||||
|
||||
WORKDIR source
|
||||
ADD package.json .
|
||||
RUN npm install
|
||||
|
||||
|
||||
FROM npm-installed AS builder
|
||||
|
||||
ADD . .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM nginx:stable-alpine3.17-slim
|
||||
|
||||
COPY --from=builder /source/build /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user