From c491070174602cd8aeed4e6badff03e7496b1058 Mon Sep 17 00:00:00 2001 From: tycrek Date: Mon, 30 May 2022 15:47:17 -0600 Subject: [PATCH] Fix Docker maybe --- Dockerfile | 5 ++--- compose.yaml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca73b36..f34e90e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,7 @@ COPY . ./ # Update npm to at least npm 8, # then install dependencies RUN npm i -g npm@8 typescript && \ - npm i --save-dev && \ - npm run build + npm i --save-dev # Ensure these directories & files exist for compose volumes RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ @@ -26,4 +25,4 @@ RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ touch /opt/ass/data.json # Start ass -CMD npm start +CMD npm run dev diff --git a/compose.yaml b/compose.yaml index 5ecfe03..cb2fd1a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -6,7 +6,7 @@ services: ass: build: . - command: npm start + command: npm run dev container_name: ass-docker restart: unless-stopped ports: