mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-09 16:24:31 +00:00
ci/cd
This commit is contained in:
parent
def118101d
commit
633c6842b7
3 changed files with 53 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Schritt 1: Build
|
||||
FROM node:20 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Schritt 2: Produktionsimage
|
||||
FROM node:20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app ./
|
||||
# RUN npm prune --production
|
||||
|
||||
EXPOSE 4173
|
||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue