Skip to content

Dockerfile#2

Open
ryanlockwod wants to merge 1 commit intoCustomersupport-CS:mainfrom
ryanlockwod:patch-1
Open

Dockerfile#2
ryanlockwod wants to merge 1 commit intoCustomersupport-CS:mainfrom
ryanlockwod:patch-1

Conversation

@ryanlockwod
Copy link

Use a lightweight Node.js image

FROM node:18-bullseye

Set working directory

WORKDIR /app

RUN git clone https://github.com/EMMYHENZ-TECH/Chat-Site01.git /app

Set correct permissions

RUN chmod -R 777 /app

Install project dependencies

WORKDIR /app
RUN npm install

Expose a port

EXPOSE 3000

Start the application

CMD ["node", "server.js"]

# Use a lightweight Node.js image
FROM node:18-bullseye

# Set working directory
WORKDIR /app

RUN git clone https://github.com/EMMYHENZ-TECH/Chat-Site01.git /app

# Set correct permissions
RUN chmod -R 777 /app

# Install project dependencies
WORKDIR /app
RUN npm install

# Expose a port
EXPOSE 3000

# Start the application
CMD ["node", "server.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant