Skip to content

Commit

Permalink
Merge pull request #94 from mini-game-world/#62_monitoring
Browse files Browse the repository at this point in the history
#62 fix : 배포방식 변경
  • Loading branch information
jayjayppark authored Jul 7, 2024
2 parents 24c22b6 + aee9837 commit 89eb774
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Use the official Node.js image as the base image
FROM node:20-buster

# 필요한 패키지 설치
RUN apt-get update && apt-get install -y libssl1.1

# Set the working directory
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the NestJS application
RUN npm run build

# Expose the application port
EXPOSE 3000

# Start the application
CMD ["npm", "run", "start"]
## Use the official Node.js image as the base image
#FROM node:20-buster
#
## 필요한 패키지 설치
#RUN apt-get update && apt-get install -y libssl1.1
#
## Set the working directory
#WORKDIR /usr/src/app
#
## Copy package.json and package-lock.json
#COPY package*.json ./
#
## Install dependencies
#RUN npm install
#
## Copy the rest of the application code
#COPY . .
#
## Build the NestJS application
#RUN npm run build
#
## Expose the application port
#EXPOSE 3000
#
## Start the application
#CMD ["npm", "run", "start"]

0 comments on commit 89eb774

Please sign in to comment.