Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
I had previously broken the Dockerfile when porting the project to TypeScript, then a PR I merged didn't quite fix the problem.
  • Loading branch information
Wingysam committed Oct 15, 2024
1 parent f6b25d8 commit 3c71634
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ FROM node:20-alpine

RUN apk --no-cache add curl

ENV NODE_ENV production
ENV PORT 80
ENV DB_EXPOSE_PORT 8080
ENV DB_PREFIX /data/dbs/
ENV DB_LOG_FILE /dev/null
ENV PORT=80
ENV DB_EXPOSE_PORT=8080
ENV DB_PREFIX=/data/dbs/
ENV DB_LOG_FILE=/dev/null

ENV SECRET_DIRNAME /data
ENV SECRET_DIRNAME=/data

WORKDIR /usr/src/app

COPY . .
RUN npm install --production --silent && \
npm install -g typescript \
RUN npm install --silent && \
npm run build && \
mkdir -p /data/dbs
rm -rf node_modules && \
npm install --production --silent && \
mkdir -p /data/dbs

EXPOSE 80

CMD ./Dockerstart.sh

CMD ["./Dockerstart.sh"]

0 comments on commit 3c71634

Please sign in to comment.