mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 15:21:29 +03:00
Force nodemon to install during the container setup
Docker now starts through nodemon directly
This commit is contained in:
@@ -3,7 +3,7 @@ FROM alpine:3.12 as frontend
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
npm
|
npm
|
||||||
|
|
||||||
RUN npm install -g @angular/cli
|
RUN npm install -g @angular/cli nodemon
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY [ "package.json", "package-lock.json", "/build/" ]
|
COPY [ "package.json", "package-lock.json", "/build/" ]
|
||||||
@@ -42,4 +42,4 @@ COPY --chown=$UID:$GID [ "/backend/", "/app/" ]
|
|||||||
|
|
||||||
EXPOSE 17442
|
EXPOSE 17442
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "nodemon", "app.js" ]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
CMD="npm start"
|
CMD="nodemon app.js"
|
||||||
|
|
||||||
# if the first arg starts with "-" pass it to program
|
# if the first arg starts with "-" pass it to program
|
||||||
if [ "${1#-}" != "$1" ]; then
|
if [ "${1#-}" != "$1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user