add CI stuff

This commit is contained in:
mrjvs
2023-09-13 23:08:44 +02:00
parent 95f0026f5a
commit c2ae6432ae
8 changed files with 169 additions and 2 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:18-alpine as base
WORKDIR /app
# Build layer
FROM base as build
COPY package-lock.json package.json ./
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
# Production layer
FROM base as production
EXPOSE 3000
ENV NODE_ENV=production
COPY --from=build /app/.output ./.output
CMD ["node", ".output/server/index.mjs"]