Update Dockerfile
Browse filesCo-authored-by: Sleeyax <[email protected]>
- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -4,12 +4,13 @@ WORKDIR /app
|
|
| 4 |
|
| 5 |
RUN npm install -g pnpm
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy the rest of your app's source code
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
-
# Install dependencies
|
| 11 |
-
RUN pnpm install
|
| 12 |
-
|
| 13 |
# Expose the port the app runs on
|
| 14 |
EXPOSE 5173
|
| 15 |
|
|
|
|
| 4 |
|
| 5 |
RUN npm install -g pnpm
|
| 6 |
|
| 7 |
+
# Install dependencies (this step is cached as long as the dependencies don't change)
|
| 8 |
+
COPY package.json package-lock.json .
|
| 9 |
+
RUN pnpm install
|
| 10 |
+
|
| 11 |
# Copy the rest of your app's source code
|
| 12 |
COPY . .
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# Expose the port the app runs on
|
| 15 |
EXPOSE 5173
|
| 16 |
|