mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 04:03:10 -07:00
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:
parent
9394ece6e8
commit
6003796741
1 changed files with 19 additions and 17 deletions
36
Dockerfile
36
Dockerfile
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue