fix dockerfile
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Rama Priyanto 2026-04-01 15:44:33 +07:00
parent f2e5ec91fb
commit 3f863a86cc
1 changed files with 5 additions and 11 deletions

View File

@ -1,24 +1,18 @@
FROM node:23.5.0-alpine
FROM node:20-alpine
ENV PORT 4000
ENV PORT=4000
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
COPY vendor/ckeditor5 ./vendor/ckeditor5
# Instal dependensi
RUN npm install -g npm@latest
RUN npm install next --legacy-peer-deps
COPY . /usr/src/app
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
EXPOSE 4000
# Jalankan aplikasi
CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]