Skip to content

Commit

Permalink
Run base image package installation asynchronously (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon authored Jan 20, 2025
1 parent dbb6ff5 commit 52bcf1f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ FROM build_${BUILD_METHOD} AS build
#
FROM ${BASE_IMAGE} AS base

RUN apt-get update && \
apt-get install --no-install-recommends --assume-yes \
ca-certificates curl wget file unzip zstd liblz4-tool gnupg2 jq s3cmd pv && \
apt-get clean

# Install Storj DCS uplink client
RUN curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip && \
unzip -o uplink_linux_amd64.zip && \
install uplink /usr/bin/uplink && \
rm -f uplink uplink_linux_amd64.zip

# Copy scripts
COPY entrypoint.sh snapshot.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh /usr/bin/snapshot.sh

#
# Base image copying build artifacts
#
Expand All @@ -106,11 +121,6 @@ COPY --from=build /data/deps/ /
FROM ${BASE_METHOD} AS omnibus
LABEL org.opencontainers.image.source=https://github.com/akash-network/cosmos-omnibus

RUN apt-get update && \
apt-get install --no-install-recommends --assume-yes \
ca-certificates curl wget file unzip zstd liblz4-tool gnupg2 jq s3cmd pv && \
apt-get clean

ARG PROJECT
ARG PROJECT_BIN
ARG PROJECT_DIR
Expand Down Expand Up @@ -139,16 +149,6 @@ EXPOSE 26656 \
9090 \
8080

# Install Storj DCS uplink client
RUN curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip && \
unzip -o uplink_linux_amd64.zip && \
install uplink /usr/bin/uplink && \
rm -f uplink uplink_linux_amd64.zip

# Copy scripts
COPY entrypoint.sh snapshot.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh /usr/bin/snapshot.sh

WORKDIR /root
ENTRYPOINT ["entrypoint.sh"]
CMD []

0 comments on commit 52bcf1f

Please sign in to comment.