fix: track Dockerfile and .dockerignore in easySite
.gitignore was ignoring these files, causing them to be missing on fresh checkout (e.g. after git pull on server), which broke the Docker build. Removed the ignore entries so the files are tracked by git.
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
# .dockerignore
|
||||||
|
node_modules
|
||||||
|
.nuxt
|
||||||
|
.output
|
||||||
|
.git
|
||||||
|
*.log
|
||||||
|
.env
|
||||||
|
.DS_Store
|
||||||
@@ -5,6 +5,4 @@ node_modules
|
|||||||
.git
|
.git
|
||||||
*.log
|
*.log
|
||||||
.env
|
.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
FROM node:24.11.0-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
COPY nuxt.config.ts ./
|
||||||
|
COPY tsconfig.json ./
|
||||||
|
|
||||||
|
# Увеличиваем память
|
||||||
|
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
|
||||||
|
RUN npm install --production
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Собираем без таймаута
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD ["node", ".output/server/index.mjs"]
|
||||||
Reference in New Issue
Block a user