docker file
This commit is contained in:
parent
00cbffa980
commit
f3bd29fd70
84
Dockerfile
84
Dockerfile
|
|
@ -1,65 +1,65 @@
|
||||||
# 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"]
|
|
||||||
|
|
||||||
FROM node:23.5.0-alpine
|
FROM node:23.5.0-alpine
|
||||||
|
|
||||||
ENV PORT 4000
|
ENV PORT 4000
|
||||||
|
|
||||||
# Install Yarn globally
|
# pnpm install globally
|
||||||
# RUN npm install -g yarn
|
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
|
||||||
|
|
||||||
# Copy package.json and yarn.lock
|
# Installing dependencies
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
|
||||||
# Copy ckeditor5 to workdir
|
# Copy ckeditor5 to workdir
|
||||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN yarn install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
# RUN npm install --force
|
||||||
|
# RUN npm install -g npm@latest
|
||||||
|
# RUN npm install
|
||||||
|
|
||||||
# Copying source files
|
# Copying source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Building app
|
# Building app
|
||||||
RUN yarn build
|
RUN pnpm run build
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Running the app
|
# Running the app
|
||||||
CMD ["yarn", "start"]
|
CMD ["pnpm", "run", "start"]
|
||||||
|
|
||||||
|
# FROM node:23.5.0-alpine
|
||||||
|
|
||||||
|
# ENV PORT 4000
|
||||||
|
|
||||||
|
# # Install Yarn globally
|
||||||
|
# # RUN npm install -g yarn
|
||||||
|
|
||||||
|
# # Create app directory
|
||||||
|
# RUN mkdir -p /usr/src/app
|
||||||
|
# WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# # Copy package.json and yarn.lock
|
||||||
|
# COPY package.json yarn.lock ./
|
||||||
|
|
||||||
|
# # Copy ckeditor5 to workdir
|
||||||
|
# COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
|
# # Install dependencies
|
||||||
|
# RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
# # Copying source files
|
||||||
|
# COPY . .
|
||||||
|
|
||||||
|
# # Building app
|
||||||
|
# RUN yarn build
|
||||||
|
|
||||||
|
# EXPOSE 4000
|
||||||
|
|
||||||
|
# # Running the app
|
||||||
|
# CMD ["yarn", "start"]
|
||||||
Loading…
Reference in New Issue