diff --git a/Dockerfile b/Dockerfile index 6881c547..22f538e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:10-alpine as build WORKDIR /app COPY README.md package.json package-lock.json /app/ -RUN npm i +RUN npm ci # Rarely edited COPY bin /app/bin @@ -18,7 +18,8 @@ RUN npm ci --only=production FROM node:10-alpine as release WORKDIR /app -COPY --from=build /app/ /app/ +COPY --from=build /app/ /app/ +COPY public /app/public EXPOSE 3000 CMD npm start diff --git a/src/app.ts b/src/app.ts index c93d4ed7..d5cebc56 100644 --- a/src/app.ts +++ b/src/app.ts @@ -15,7 +15,7 @@ app.set('views', path.join(__dirname, '../views')); app.set('view engine', 'pug'); app.use(logger('dev')); -app.use(favicon(path.join(__dirname, '/public/favicon.ico'))) +app.use(favicon(path.join(__dirname, '../public/favicon.ico'))) app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser());