chore(docker): add containerized development setup

This commit is contained in:
2026-09-21 16:59:55 +03:30
parent c54332cd61
commit 6e0b718811
7 changed files with 130 additions and 0 deletions

7
frontend/.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.env
.env.*
node_modules
.nuxt
.output
dist
npm-debug.log*

1
frontend/.env.sample Normal file
View File

@@ -0,0 +1 @@
NUXT_PUBLIC_API_BASE_URL=http://127.0.0.1:8080

25
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine
ENV NODE_ENV=production \
NITRO_HOST=0.0.0.0 \
NITRO_PORT=3000
WORKDIR /app
COPY --from=build --chown=node:node /app/.output ./.output
USER node
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]