Spaces:
Paused
Paused
Commit
·
ae27a3e
1
Parent(s):
fea1887
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM node:latest
|
|
| 2 |
|
| 3 |
# Create app directory
|
| 4 |
WORKDIR /usr/src/app
|
| 5 |
-
RUN chown 777
|
| 6 |
|
| 7 |
USER root
|
| 8 |
|
|
@@ -11,6 +11,10 @@ USER root
|
|
| 11 |
# where available (npm@5+)
|
| 12 |
COPY package*.json ./
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
RUN npm install
|
| 15 |
RUN npm install express
|
| 16 |
# If you are building your code for production
|
|
|
|
| 2 |
|
| 3 |
# Create app directory
|
| 4 |
WORKDIR /usr/src/app
|
| 5 |
+
RUN chown -R 777 *
|
| 6 |
|
| 7 |
USER root
|
| 8 |
|
|
|
|
| 11 |
# where available (npm@5+)
|
| 12 |
COPY package*.json ./
|
| 13 |
|
| 14 |
+
RUN apt update && apt install git -y
|
| 15 |
+
RUN git clone https://github.com/fsquillace/junest.git ~/.local/share/junest
|
| 16 |
+
RUN export PATH=~/.local/share/junest/bin:$PATH
|
| 17 |
+
|
| 18 |
RUN npm install
|
| 19 |
RUN npm install express
|
| 20 |
# If you are building your code for production
|