Skip to content

Commit

Permalink
Generate the db/images/ folder, as koa expects this folder to be ex…
Browse files Browse the repository at this point in the history
…istent
  • Loading branch information
ChristophNiehoff committed Sep 3, 2021
1 parent 28fbbef commit 6d40fe8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Empty file added db/.gitkeep
Empty file.
Empty file added db/images/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions docker/server.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ WORKDIR /usr/src/app
RUN chown node:node /usr/src/app
USER node
ENV NODE_ENV production
RUN mkdir -p /usr/src/app/db/images
COPY --chown=node:node --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
COPY --chown=node:node ./src/server /usr/src/app/src/server
COPY --chown=node:node ./src/game /usr/src/app/src/game
Expand Down
3 changes: 2 additions & 1 deletion heroku/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COPY package*.json ./
RUN npm install
COPY src ./src
COPY public ./public
RUN mkdir -p ./db/images

RUN npm run build

Expand All @@ -18,4 +19,4 @@ COPY heroku/conf/nginx.conf /etc/nginx/http.d/default.conf
RUN cp -a build/. /var/www/html/

# add support for $PORT env variable
CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/http.d/default.conf && /usr/bin/supervisord
CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/http.d/default.conf && /usr/bin/supervisord

0 comments on commit 6d40fe8

Please sign in to comment.