2023-11-25 11:18:07 -08:00
|
|
|
FROM node:20-alpine
|
2019-08-19 07:49:21 -07:00
|
|
|
|
2020-11-30 18:03:03 -08:00
|
|
|
RUN apk --no-cache add curl
|
|
|
|
|
2018-12-01 07:44:26 -08:00
|
|
|
ENV NODE_ENV production
|
|
|
|
WORKDIR /usr/src/app
|
2019-08-19 07:49:21 -07:00
|
|
|
|
2022-12-17 15:49:07 -08:00
|
|
|
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
2020-11-03 12:51:00 -08:00
|
|
|
RUN npm install --production --silent
|
2019-08-19 07:49:21 -07:00
|
|
|
|
2018-12-01 07:44:26 -08:00
|
|
|
COPY . .
|
2019-08-19 07:49:21 -07:00
|
|
|
|
2019-11-10 10:48:23 -08:00
|
|
|
ENV PORT 80
|
2020-11-03 17:16:23 -08:00
|
|
|
ENV DB_EXPOSE_PORT 8080
|
2019-11-10 10:48:23 -08:00
|
|
|
EXPOSE 80
|
2019-08-19 07:49:21 -07:00
|
|
|
|
2020-11-03 17:16:23 -08:00
|
|
|
RUN mkdir -p /data/dbs
|
|
|
|
ENV DB_PREFIX /data/dbs/
|
2019-08-19 07:49:21 -07:00
|
|
|
|
|
|
|
ENV SECRET_DIRNAME /data
|
|
|
|
|
2023-11-25 11:18:07 -08:00
|
|
|
CMD ./Dockerstart.sh
|