Upgraded to latest alpine instead of EOL Debian and tested.

Debian Stretch is at the end of life date next year so I upgraded and tested the usability of Alpine. Also verified the default settings of this container still work with less env-vars defined in the Dockerfile.  Next step will be to fully add documentation mentioning the env-vars that are now missing from the official image.
This commit is contained in:
Leopere 2021-12-29 14:06:11 -05:00 committed by GitHub
commit 6003796741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,22 @@
FROM node:14.8.0-stretch
FROM node:17-alpine
RUN mkdir -p /usr/src/app && \
chown node:node /usr/src/app && \
apk add bash
USER node:node
WORKDIR /usr/src/app
COPY --chown=node:node . .
RUN npm install && \
npm install redis@0.8.1 && \
npm install pg@4.1.1 && \
npm install memcached@2.2.2 && \
npm install aws-sdk@2.738.0 && \
npm install rethinkdbdash@2.3.31
ENV STORAGE_TYPE=memcached \
STORAGE_HOST=127.0.0.1 \
@ -23,22 +41,6 @@ ENV STORAGE_TYPE=memcached \
RATELIMITS_BLACKLIST=example1.blacklist,example2.blacklist \
DOCUMENTS=about=./about.md
RUN mkdir -p /usr/src/app && \
chown node:node /usr/src/app
USER node:node
WORKDIR /usr/src/app
COPY --chown=node:node . .
RUN npm install && \
npm install redis@0.8.1 && \
npm install pg@4.1.1 && \
npm install memcached@2.2.2 && \
npm install aws-sdk@2.738.0 && \
npm install rethinkdbdash@2.3.31
EXPOSE ${PORT}
STOPSIGNAL SIGINT
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]