Spaces:
Running
Running
Avijit Ghosh
commited on
Commit
·
a0d2087
1
Parent(s):
3435546
added docker
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -10,14 +10,14 @@ WORKDIR /app
|
|
10 |
COPY package*.json ./
|
11 |
COPY pnpm-lock.yaml ./
|
12 |
|
13 |
-
# Install minimal build tools for native modules (node-gyp) and
|
14 |
# Using the repo's `pnpm-lock.yaml` keeps installs deterministic on Spaces.
|
|
|
15 |
RUN apt-get update \
|
16 |
&& apt-get install -y --no-install-recommends ca-certificates python3 build-essential git curl \
|
17 |
&& rm -rf /var/lib/apt/lists/* \
|
18 |
-
&&
|
19 |
-
&&
|
20 |
-
&& pnpm install --frozen-lockfile --reporter=silent
|
21 |
|
22 |
# copy source and build
|
23 |
COPY . ./
|
|
|
10 |
COPY package*.json ./
|
11 |
COPY pnpm-lock.yaml ./
|
12 |
|
13 |
+
# Install minimal build tools for native modules (node-gyp) and install pnpm.
|
14 |
# Using the repo's `pnpm-lock.yaml` keeps installs deterministic on Spaces.
|
15 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
16 |
RUN apt-get update \
|
17 |
&& apt-get install -y --no-install-recommends ca-certificates python3 build-essential git curl \
|
18 |
&& rm -rf /var/lib/apt/lists/* \
|
19 |
+
&& npm install -g pnpm@latest \
|
20 |
+
&& pnpm install --frozen-lockfile
|
|
|
21 |
|
22 |
# copy source and build
|
23 |
COPY . ./
|