Skip to content

Commit

Permalink
[Issue #1813]: try libc fix (#1814)
Browse files Browse the repository at this point in the history
## Summary
Fixes #1813


## Changes proposed
- run command in frontend and api docker to update libc
  • Loading branch information
rylew1 authored Apr 23, 2024
1 parent 1cd03cb commit afed8f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ RUN apt-get update \
# https://pythonspeed.com/articles/security-updates-in-docker/
&& apt-get upgrade --yes \
&& apt-get install --no-install-recommends --yes \
build-essential \
libpq-dev \
postgresql \
wget \
libc-bin libc6 \
build-essential \
libpq-dev \
postgresql \
wget \
# Reduce the image size by clear apt cached lists
# Complies with https://github.com/codacy/codacy-hadolint/blob/master/codacy-hadolint/docs/description/DL3009.md
&& rm -fr /var/lib/apt/lists/* \
Expand Down
6 changes: 6 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ RUN npm run build -- --no-lint
FROM node:20-bullseye-slim AS release
WORKDIR /frontend

# Update system and install security updates
RUN apt-get update \
&& apt-get install -y --only-upgrade libc-bin libc6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /frontend/.next/cache/images/
VOLUME ["/frontend/.next/cache/images/"]

Expand Down

0 comments on commit afed8f7

Please sign in to comment.