Spaces:
Runtime error
Runtime error
Commit
·
44acf32
1
Parent(s):
7e0e952
move yarn
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -9,8 +9,7 @@ RUN apt-get update && \
|
|
| 9 |
apt-get clean && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
|
| 13 |
-
RUN which npm
|
| 14 |
|
| 15 |
#Set up a new user named "user" with user ID 1000
|
| 16 |
RUN useradd -m -u 1000 user
|
|
@@ -35,7 +34,6 @@ RUN pip install -r requirements.txt
|
|
| 35 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 36 |
COPY --chown=user . $HOME/app
|
| 37 |
|
| 38 |
-
RUN npm install -g yarn
|
| 39 |
|
| 40 |
RUN yarn install
|
| 41 |
RUN yarn build
|
|
|
|
| 9 |
apt-get clean && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
RUN npm install -g yarn
|
|
|
|
| 13 |
|
| 14 |
#Set up a new user named "user" with user ID 1000
|
| 15 |
RUN useradd -m -u 1000 user
|
|
|
|
| 34 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 35 |
COPY --chown=user . $HOME/app
|
| 36 |
|
|
|
|
| 37 |
|
| 38 |
RUN yarn install
|
| 39 |
RUN yarn build
|