1
This commit is contained in:
commit
d02b63f9e7
32 changed files with 2860 additions and 0 deletions
15
Containerfile
Normal file
15
Containerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM docker.io/node:alpine as build-stage
|
||||
#FROM docker.io/gplane/pnpm:alpine as build-stage
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corepack enable
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN pnpm install
|
||||
COPY ./ .
|
||||
RUN pnpm run build
|
||||
|
||||
FROM docker.io/library/nginx:alpine as production-stage
|
||||
RUN mkdir /app
|
||||
COPY --from=build-stage /app/dist /app
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
Loading…
Add table
Add a link
Reference in a new issue