Skip to content

Commit

Permalink
Upgrade Base Image to Ubuntu 24.04
Browse files Browse the repository at this point in the history
Ubuntu 24.04 is a slightly smaller starting image.
Delete apt cache after installing packages to farther reduce image size.
  • Loading branch information
amayer5125 committed Jul 29, 2024
1 parent 2c2bfa8 commit f222d8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM ubuntu:22.04
FROM ubuntu:24.04

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y curl jq
DEBIAN_FRONTEND=noninteractive apt-get install -y curl jq && \
rm -rf /var/lib/apt/lists/*

COPY check /opt/resource/check
COPY in /opt/resource/in
COPY out /opt/resource/out
COPY card.jq /opt/resource/card.jq

RUN chmod +x /opt/resource/out /opt/resource/in /opt/resource/check
RUN chmod +x /opt/resource/out /opt/resource/in /opt/resource/check

0 comments on commit f222d8d

Please sign in to comment.