fix dockerfile
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
f2e5ec91fb
commit
3f863a86cc
16
Dockerfile
16
Dockerfile
|
|
@ -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"]
|
||||
Loading…
Reference in New Issue