Skip to content

Commit

Permalink
fix: not found public/favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
heycalmdown committed Nov 27, 2019
1 parent 549c78b commit d4ac755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d4ac755

Please sign in to comment.