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:
|
only:
|
||||||
- main
|
- main
|
||||||
- dev-restructure
|
- dev-restructure
|
||||||
|
- dev-main
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:dind
|
||||||
|
|
@ -24,6 +25,7 @@ auto-deploy:
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
- dev-restructure
|
- dev-restructure
|
||||||
|
- dev-main
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
|
||||||
22
Dockerfile
22
Dockerfile
|
|
@ -2,23 +2,33 @@ FROM node:23.5.0-alpine
|
||||||
|
|
||||||
ENV PORT 4000
|
ENV PORT 4000
|
||||||
|
|
||||||
|
# pnpm install globally
|
||||||
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
RUN mkdir -p /usr/src/app
|
RUN mkdir -p /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Installing dependencies
|
# 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 --force
|
||||||
RUN npm install -g npm@latest
|
# RUN npm install -g npm@latest
|
||||||
RUN npm install
|
# RUN npm install
|
||||||
|
|
||||||
# Copying source files
|
# Copying source files
|
||||||
COPY . /usr/src/app
|
COPY . .
|
||||||
|
|
||||||
# Building app
|
# Building app
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Running the app
|
# 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