update dockerfile to nodejs 18

This commit is contained in:
mrjvs 2022-05-08 15:17:52 +02:00
parent fdde32e70a
commit 8a8efb44f9

View file

@ -1,15 +1,16 @@
FROM node:14-alpine
FROM node:18-alpine
RUN apk add --no-cache python3 make gcc g++
WORKDIR /app
COPY "docker/entrypoint.sh" .
COPY "docker/entrypoint.sh" ./
COPY package*.json .
COPY package*.json ./
RUN npm install bcrypt && npm rebuild bcrypt --build-from-source
RUN npm install
COPY . .
COPY . ./
VOLUME [ "/app/config.json" ]
VOLUME [ "/app/config.json", "/app/certs" ]
CMD ["sh", "entrypoint.sh"]