Dev 2.0 #23

Merged
LukeGus merged 44 commits from dev-2.0 into main 2025-03-16 19:17:56 +00:00
Showing only changes of commit 0da37dcfc7 - Show all commits

View File

@@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y \
&& apt-get update && apt-get install -y mongodb-org \
&& rm -rf /var/lib/apt/lists/*
# Create mongodb user and group if they do not exist
# Create mongodb user and group
RUN getent group mongodb || groupadd -r mongodb && \
getent passwd mongodb || useradd -r -g mongodb mongodb
@@ -35,6 +35,10 @@ FROM node:18-alpine
# Install nginx
RUN apk add --no-cache nginx bash
# Create mongodb user and group in the final image
RUN getent group mongodb || groupadd -r mongodb && \
getent passwd mongodb || useradd -r -g mongodb mongodb
# Install MongoDB from the mongodb-builder stage
COPY --from=mongodb-builder /usr/bin/mongod /usr/bin/mongod
COPY --from=mongodb-builder /usr/bin/mongo /usr/bin/mongo