Merge branch 'dev-main' of https://gitlab.com/hanifsalafi/web-humas-polri into dev-restructure
This commit is contained in:
commit
f1589b5316
|
|
@ -8,6 +8,7 @@ build-dev:
|
|||
only:
|
||||
- main
|
||||
- dev-restructure
|
||||
- dev-main
|
||||
image: docker:stable
|
||||
services:
|
||||
- name: docker:dind
|
||||
|
|
@ -24,6 +25,7 @@ auto-deploy:
|
|||
only:
|
||||
- main
|
||||
- dev-restructure
|
||||
- dev-main
|
||||
image: curlimages/curl:latest
|
||||
services:
|
||||
- docker:dind
|
||||
|
|
|
|||
22
Dockerfile
22
Dockerfile
|
|
@ -2,23 +2,33 @@ FROM node:23.5.0-alpine
|
|||
|
||||
ENV PORT 4000
|
||||
|
||||
# pnpm install globally
|
||||
RUN npm install -g pnpm
|
||||
|
||||
# Create app directory
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Installing dependencies
|
||||
COPY package*.json /usr/src/app/
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
# Copy ckeditor5 to workdir
|
||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# RUN npm install --force
|
||||
RUN npm install -g npm@latest
|
||||
RUN npm install
|
||||
# RUN npm install -g npm@latest
|
||||
# RUN npm install
|
||||
|
||||
# Copying source files
|
||||
COPY . /usr/src/app
|
||||
COPY . .
|
||||
|
||||
# Building app
|
||||
RUN npm run build
|
||||
RUN pnpm run build
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
# Running the app
|
||||
CMD "npm" "run" "start"
|
||||
CMD ["pnpm", "run", "start"]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue