Skip to content

Commit

Permalink
Try updating package before install to reduce memory footprint and av…
Browse files Browse the repository at this point in the history
…oid segfault.
  • Loading branch information
afinetooth committed Aug 15, 2024
1 parent 895498c commit 4859f26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM 84codes/crystal:master-ubuntu-22.04 as builder-x86_64
# Set the working directory
WORKDIR /app

# Install required packages
RUN apt-get update && apt-get install -y libyaml-dev liblzma-dev build-essential
# Update and upgrade system packages, then install required packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y libyaml-dev liblzma-dev build-essential

# Copy the source code
COPY . .
Expand All @@ -19,8 +19,8 @@ FROM 84codes/crystal:master-ubuntu-22.04 as builder-aarch64
# Set the working directory
WORKDIR /app

# Install required packages
RUN apt-get update && apt-get install -y libyaml-dev liblzma-dev gcc-aarch64-linux-gnu build-essential
# Update and upgrade system packages, then install required packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y libyaml-dev liblzma-dev gcc-aarch64-linux-gnu build-essential

# Copy the source code
COPY . .
Expand Down

0 comments on commit 4859f26

Please sign in to comment.