1
0

Convert to a cloudron image

This commit is contained in:
rui hildt
2024-05-10 16:40:30 +02:00
parent 55fd2993f3
commit fef1fadc84
7 changed files with 352 additions and 19 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM node:18-bullseye-slim as builder
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:18-bullseye-slim
ENV NODE_ENV production
USER node
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=builder /usr/src/app/build ./build
EXPOSE 3000
CMD [ "node", "build" ]