Spaces:
Sleeping
Sleeping
Praneeth Yerrapragada
commited on
Commit
•
3739969
1
Parent(s):
5e29b5f
build: fix Dockerfile to try to build the app on HF
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -1,6 +1,14 @@
|
|
1 |
FROM node:20-alpine as build
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
# Install dependencies
|
6 |
COPY package.json package-lock.* ./
|
|
|
1 |
FROM node:20-alpine as build
|
2 |
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
USER user
|
5 |
+
ENV HOME=/home/user \
|
6 |
+
PATH=/home/user/.local/bin:$PATH
|
7 |
+
WORKDIR $HOME/app
|
8 |
+
|
9 |
+
ENV PYTHONPATH=/app
|
10 |
+
|
11 |
+
COPY --chown=user . $HOME/app
|
12 |
|
13 |
# Install dependencies
|
14 |
COPY package.json package-lock.* ./
|