Spaces:
Running
Running
Commit
·
6480c62
1
Parent(s):
3932381
Update Dockerfile
Browse files- Dockerfile +0 -7
Dockerfile
CHANGED
@@ -3,13 +3,6 @@ FROM node:18 AS base
|
|
3 |
# Create app directory and set it as WORKDIR
|
4 |
WORKDIR /app
|
5 |
|
6 |
-
# Create the cache directory with the correct permissions before switching to the node user
|
7 |
-
RUN mkdir -p /app/node_modules/@xenova/transformers/.cache && \
|
8 |
-
chown -R node:node /app/node_modules
|
9 |
-
|
10 |
-
# Switch to the node user for installing dependencies
|
11 |
-
USER node
|
12 |
-
|
13 |
# Install dependencies based on the preferred package manager
|
14 |
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
15 |
RUN \
|
|
|
3 |
# Create app directory and set it as WORKDIR
|
4 |
WORKDIR /app
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Install dependencies based on the preferred package manager
|
7 |
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
8 |
RUN \
|