Skip to content

Commit

Permalink
Clean up dnf commands and install util-linux to get the mount binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Dec 2, 2023
1 parent f20774c commit 430544a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,26 @@ RUN wget --quiet https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-
FROM amazonlinux:2023
COPY --from=builder /mount-s3.rpm /mount-s3.rpm

RUN dnf upgrade -y \
&& dnf install -y \
# Required for extracting the node tarball
tar \
xz \
# Required for `mount`
util-linux \
# Other required packages
python3-pip \
&& dnf clean all

RUN dnf upgrade -y && \
dnf install -y ./mount-s3.rpm && \
dnf clean all && \
rm mount-s3.rpm

RUN dnf upgrade -y \
&& dnf install -y python3-pip

RUN pip install supervisor

COPY --from=builder /node.tar.xz /node.tar.xz
RUN dnf upgrade -y \
&& dnf install -y tar xz \
&& tar -xf /node.tar.xz -C /usr/local --strip-components=1 \
RUN tar -xf /node.tar.xz -C /usr/local --strip-components=1 \
&& rm /node.tar.xz

RUN npm install -g serve
Expand Down

0 comments on commit 430544a

Please sign in to comment.