mirror of
https://github.com/SunRed/haste-server.git
synced 2025-09-04 04:50:14 +02:00
Install all storage client deps by default and move them to optional deps
* Moving the storage dependencies again into package.json but to the optionalDependencies * Add build script that excludes the optional dependencies for manual installation of these * Add a comment in Dockerfile on how to use the minimal build script
This commit is contained in:
parent
8922925491
commit
062bdb3dec
3 changed files with 1006 additions and 9 deletions
16
Dockerfile
16
Dockerfile
|
@ -11,15 +11,15 @@ WORKDIR /usr/src/app
|
|||
|
||||
COPY --chown=node:node . .
|
||||
|
||||
# Replace build with build-min to exclude the optional dbms dependencies
|
||||
# and uncomment the needed one below to build a smaller Docker image.
|
||||
RUN npm run build
|
||||
|
||||
# uncomment dbms client packages here
|
||||
#RUN npm install pg@8.5.1 && \
|
||||
# npm install aws-sdk@2.842.0 && \
|
||||
# npm install memcached@2.2.2 && \
|
||||
# npm install mongodb@3.6.4 && \
|
||||
# npm install ioredis@4.22.0 && \
|
||||
# npm install rethinkdbdash@2.3.31
|
||||
#RUN npm install pg
|
||||
#RUN npm install aws-sdk
|
||||
#RUN npm install memcached
|
||||
#RUN npm install mongodb
|
||||
#RUN npm install ioredis
|
||||
#RUN npm install rethinkdbdash
|
||||
|
||||
ENV PORT=7777
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue