Dockerfile
This commit is contained in:
15
tatort/Dockerfile
Normal file
15
tatort/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM node:19 as build
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm install
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
FROM node:19-alpine3.16
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
ENV HOST=0.0.0.0
|
||||
EXPOSE 4173
|
||||
CMD ["npm","run", "preview","--", "--host", "0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user