Added Dockerfile and changed baseUrl to current deployment

This commit is contained in:
2026-04-04 19:02:26 +02:00
parent 1bce6b4d99
commit 23f0bd3e62
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
FROM node:lts-alpine AS build
WORKDIR /usr/src/app
# Copy package.json
COPY package.json ./
# Install dependencies
RUN yarn install --production
# Copy all files
COPY . .
RUN yarn run build
FROM node:lts-alpine
WORKDIR /usr/src/app
COPY package.json ./
COPY --from=build /usr/src/app/dist ./dist
RUN yarn install --production
# Expose port 3000
EXPOSE 3000
# Run app
CMD [ "node", "dist/app.js" ]