Final Docker fix hopefully

pull/126/head^2
tycrek 3 years ago
parent c491070174
commit edf287c47a
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -15,7 +15,8 @@ COPY . ./
# Update npm to at least npm 8,
# then install dependencies
RUN npm i -g npm@8 typescript && \
npm i --save-dev
npm i --save-dev && \
npm run build
# Ensure these directories & files exist for compose volumes
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
@ -25,4 +26,4 @@ RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
touch /opt/ass/data.json
# Start ass
CMD npm run dev
CMD npm start

@ -6,7 +6,7 @@
services:
ass:
build: .
command: npm run dev
command: npm start
container_name: ass-docker
restart: unless-stopped
ports:

@ -22,14 +22,11 @@ read -n 1 -s -r -p "Press any key to continue..."
echo Running setup...
# docker compose up -d
docker compose up -d && \
# Bring up the container
docker compose up
# Run setup within the container
docker compose exec ass npm run setup && \
# Restart the container when complete
docker compose restart && \
# Restart the container when setup complete
docker compose restart
# Done!
echo "ass-docker for Linux installed!"

@ -19,14 +19,11 @@ PAUSE
ECHO Running setup...
REM docker compose up -d
docker compose up -d &&
REM Bring up the container
docker compose up
REM Run setup within the container
docker compose exec ass npm run setup &&
REM Restart the container when complete
docker compose restart &&
REM Restart the container when setup complete
docker compose restart
REM Done!
ECHO ass-docker for Windows installed!

Loading…
Cancel
Save