diff --git a/Dockerfile b/Dockerfile index 4f07178..654004f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . @@ -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 . .