feat: implement dockerfiles and improve cors configuration

This commit is contained in:
2025-11-17 14:20:04 -03:00
parent 70baa4997a
commit 038dbcb4ea
5 changed files with 59 additions and 3 deletions

16
web/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Builder stage
FROM node:16-alpine AS builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --production --frozen-lockfile
COPY . .
RUN yarn build
# Runtime stage
FROM node:16-alpine
WORKDIR /app
COPY --from=builder /app/build ./build
RUN yarn global add serve
ENV PORT=3000
EXPOSE 3000
CMD ["sh", "-c", "serve -s build -l ${PORT}"]