Convert to a cloudron image
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user