ci: fix docker SSR start command and non-CI docker builds

This commit is contained in:
Thibault Nocchi
2021-12-05 22:27:07 +01:00
committed by Fernando Fernández
parent d13d403b21
commit 59cbbbda99
4 changed files with 5 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Dockerfile
Dockerfile
Dockerfile.static
Dockerfile.ssr
# Coverage directory used by tools like istanbul
coverage
+1 -1
View File
@@ -16,4 +16,4 @@ RUN rm -rf package-lock.json
EXPOSE 80
CMD [ "npm", "run", "start:ssr" ]
CMD [ "npx", "nuxt-start" ]
+2 -3
View File
@@ -2,9 +2,6 @@
FROM node:16-alpine AS build
# Install build dependencies for node modules
RUN apk add --no-cache --virtual .build-deps git python make automake autoconf g++ libpng-dev libtool nasm file
# Set workdir
WORKDIR /app
@@ -22,3 +19,5 @@ FROM nginx:alpine
COPY --from=build /app/src/dist/ /usr/share/nginx/html/
COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY .docker/mime.types /etc/nginx/mime.types
EXPOSE 80
+1 -4
View File
@@ -4,9 +4,6 @@ FROM node:16-alpine AS build
WORKDIR /app
# Install build dependencies for node modules
RUN apk add --no-cache --virtual .build-deps git python make automake autoconf g++ libpng-dev libtool nasm file
COPY . .
# Install dependencies
@@ -32,4 +29,4 @@ RUN rm -rf package-lock.json
EXPOSE 80
CMD [ "npm", "run", "start:ssr" ]
CMD [ "npx", "nuxt-start" ]