Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +0 -6
Dockerfile
CHANGED
|
@@ -4,15 +4,9 @@ FROM node:18-alpine
|
|
| 4 |
# Step 2: Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#RUN npm init
|
| 8 |
-
|
| 9 |
# Step 3: Copy package.json and package-lock.json (if available) into the working directory
|
| 10 |
COPY package*.json ./
|
| 11 |
|
| 12 |
-
RUN npm i colyseus
|
| 13 |
-
|
| 14 |
-
RUN npm i --save-dev typescript ts-node-dev
|
| 15 |
-
|
| 16 |
# Step 4: Install the dependencies
|
| 17 |
RUN npm install
|
| 18 |
|
|
|
|
| 4 |
# Step 2: Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
| 7 |
# Step 3: Copy package.json and package-lock.json (if available) into the working directory
|
| 8 |
COPY package*.json ./
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Step 4: Install the dependencies
|
| 11 |
RUN npm install
|
| 12 |
|