Spaces:
Running
Running
matthoffner
commited on
Commit
β’
901ce1c
1
Parent(s):
cf8c85f
Update Dockerfile
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
@@ -7,12 +7,7 @@ WORKDIR /app
|
|
7 |
|
8 |
# Install dependencies based on the preferred package manager
|
9 |
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
10 |
-
RUN
|
11 |
-
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
12 |
-
elif [ -f package-lock.json ]; then npm ci; \
|
13 |
-
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
|
14 |
-
else echo "Lockfile not found." && exit 1; \
|
15 |
-
fi
|
16 |
|
17 |
# Uncomment the following lines if you want to use a secret at buildtime,
|
18 |
# for example to access your private npm packages
|
|
|
7 |
|
8 |
# Install dependencies based on the preferred package manager
|
9 |
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
10 |
+
RUN npm install
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Uncomment the following lines if you want to use a secret at buildtime,
|
13 |
# for example to access your private npm packages
|