Spaces:
Running
Running
pythonSnake5036
commited on
Commit
·
b2c05a8
1
Parent(s):
160c1ac
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
FROM node:20
|
2 |
WORKDIR /code
|
|
|
3 |
COPY ./package.json /code/package.json
|
4 |
COPY ./package-lock.json /code/package-lock.json
|
5 |
RUN npm ci
|
6 |
COPY . .
|
|
|
|
|
|
|
|
|
7 |
CMD ["node", "index.js"]
|
|
|
1 |
FROM node:20
|
2 |
WORKDIR /code
|
3 |
+
|
4 |
COPY ./package.json /code/package.json
|
5 |
COPY ./package-lock.json /code/package-lock.json
|
6 |
RUN npm ci
|
7 |
COPY . .
|
8 |
+
|
9 |
+
RUN --mount=type=secret,id=FIREBASE_ADMIN_KEY,mode=0444,required=true \
|
10 |
+
cp /run/secrets/FIREBASE_ADMIN_KEY /admin_key.json
|
11 |
+
|
12 |
CMD ["node", "index.js"]
|