web-humas-fe/Dockerfile

65 lines
1.1 KiB
Docker
Raw Normal View History

2025-02-13 03:47:40 +00:00
# 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 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
# # Copying source files
# COPY . .
# # Building app
# RUN pnpm run build
# EXPOSE 4000
# # Running the app
# CMD ["pnpm", "run", "start"]
2025-02-10 01:55:47 +00:00
FROM node:23.5.0-alpine
2024-03-28 02:25:28 +00:00
ENV PORT 4000
2025-02-13 03:47:40 +00:00
# Install Yarn globally
2025-02-13 04:13:22 +00:00
# RUN npm install -g yarn
2025-02-10 02:14:15 +00:00
2024-03-28 02:25:28 +00:00
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
2025-02-13 03:47:40 +00:00
# Copy package.json and yarn.lock
COPY package.json yarn.lock ./
2025-02-10 02:13:37 +00:00
2025-02-10 02:27:20 +00:00
# Copy ckeditor5 to workdir
COPY vendor/ckeditor5 ./vendor/ckeditor5
2025-02-10 02:13:37 +00:00
# Install dependencies
2025-02-13 03:47:40 +00:00
RUN yarn install --frozen-lockfile
2024-03-28 02:25:28 +00:00
# Copying source files
2025-02-10 02:13:37 +00:00
COPY . .
2024-03-28 02:25:28 +00:00
# Building app
2025-02-13 03:47:40 +00:00
RUN yarn build
2025-02-10 02:13:37 +00:00
2024-03-28 02:25:28 +00:00
EXPOSE 4000
# Running the app
2025-02-13 03:47:40 +00:00
CMD ["yarn", "start"]