Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -37,16 +37,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 37 |
software-properties-common && \
|
| 38 |
rm -rf /var/lib/apt/lists/*
|
| 39 |
|
| 40 |
-
RUN curl -sL https://deb.nodesource.com/
|
| 41 |
apt install nodejs && \
|
| 42 |
-
npm install -g yarn
|
| 43 |
|
| 44 |
WORKDIR $HOME
|
| 45 |
|
| 46 |
RUN git clone https://github.com/Lissy93/dashy.git && \
|
| 47 |
cd dashy && \
|
| 48 |
-
|
| 49 |
-
|
| 50 |
|
| 51 |
WORKDIR $HOME/dashy
|
| 52 |
|
|
@@ -54,4 +54,4 @@ USER $USER
|
|
| 54 |
|
| 55 |
EXPOSE $PORT
|
| 56 |
|
| 57 |
-
CMD ["
|
|
|
|
| 37 |
software-properties-common && \
|
| 38 |
rm -rf /var/lib/apt/lists/*
|
| 39 |
|
| 40 |
+
RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
|
| 41 |
apt install nodejs && \
|
| 42 |
+
# npm install -g yarn
|
| 43 |
|
| 44 |
WORKDIR $HOME
|
| 45 |
|
| 46 |
RUN git clone https://github.com/Lissy93/dashy.git && \
|
| 47 |
cd dashy && \
|
| 48 |
+
npm install && \
|
| 49 |
+
npm run build
|
| 50 |
|
| 51 |
WORKDIR $HOME/dashy
|
| 52 |
|
|
|
|
| 54 |
|
| 55 |
EXPOSE $PORT
|
| 56 |
|
| 57 |
+
CMD ["npm", "run", "start"]
|