Skip to content

Commit

Permalink
update emailservice and imageprovider dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaguirre5 committed Jun 27, 2024
1 parent a40ace0 commit 919c369
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/emailservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ FROM base as builder

WORKDIR /tmp

COPY Gemfile Gemfile.lock .
COPY ./src/emailservice/Gemfile ./src/emailservice/Gemfile.lock ./

#RUN apk update && apk add make gcc musl-dev gcompat && bundle install
RUN apt-get update && apt-get install build-essential -y && bundle install
FROM base as release

WORKDIR /email_server

COPY . .
COPY ./src/emailservice/ .

RUN chmod 666 ./Gemfile.lock

Expand Down
5 changes: 4 additions & 1 deletion src/imageprovider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

FROM nginx:1.25.3

RUN apt-get update ; apt-get install lsb-release --no-install-recommends --no-install-suggests -y
RUN apt-get update ; apt-get install curl gnupg2 ca-certificates lsb-release debian-archive-keyring --no-install-recommends --no-install-suggests -y

RUN curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
| tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null

# This file is needed for nginx-module-otel to be found.
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list
Expand Down

0 comments on commit 919c369

Please sign in to comment.