-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
ARG MONGO_VERSION=5.0.5 | ||
|
||
FROM mongo:$MONGO_VERSION | ||
|
||
FROM node:14.21.3-bullseye-slim | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
# Install MongoDB and dependencies | ||
ENV MONGO_MAJOR=5.0 \ | ||
MONGO_VERSION=5.0.5 | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y wget gnupg dirmngr pwgen \ | ||
&& wget -qO - "https://www.mongodb.org/static/pgp/server-$MONGO_MAJOR.asc" | apt-key add - \ | ||
&& echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/$MONGO_MAJOR main" | tee "/etc/apt/sources.list.d/mongodb-org-$MONGO_MAJOR.list" \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
mongodb-org=$MONGO_VERSION \ | ||
mongodb-org-server=$MONGO_VERSION \ | ||
mongodb-org-shell=$MONGO_VERSION \ | ||
mongodb-org-mongos=$MONGO_VERSION \ | ||
mongodb-org-tools=$MONGO_VERSION \ | ||
fontconfig \ | ||
&& apt-get install -y wget gnupg dirmngr pwgen fontconfig libcurl4 \ | ||
&& apt-get clean my room \ | ||
&& groupadd -g 65533 -r rocketchat \ | ||
&& useradd -u 65533 -r -g rocketchat rocketchat \ | ||
|
@@ -45,6 +35,8 @@ RUN aptMark="$(apt-mark showmanual)" \ | |
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& npm cache clear --force | ||
|
||
COPY --from=0 /usr/bin/mongo* /usr/bin | ||
|
||
VOLUME /app/uploads | ||
|
||
WORKDIR /app/bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters