Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kallyas authored Aug 26, 2023
1 parent 7956ca9 commit 8cdae10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ COPY server/package.json server/package-lock.json ./
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' >> /etc/apk/repositories
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories

RUN apk update

# Install MongoDB tools from the added repositories
RUN apk add --no-cache mongodb-tools
RUN apk add --no-cache mongodb mongodb-tools

# Create a directory for MongoDB data and logs
RUN mkdir -p /data/db /var/log/mongodb
RUN chown 'root' /data/db

# Install OpenRC, which is used to manage system services
RUN apk add --no-cache openrc
Expand Down

0 comments on commit 8cdae10

Please sign in to comment.