Skip to content

Commit

Permalink
Use updated base images for three languages (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergen authored Jan 3, 2024
1 parent 269fbf4 commit 1b3cc27
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions PrimeBASIC/solution_1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM primeimages/freebasic:1.07.3 AS build
FROM primeimages/freebasic:1.10.1 AS build

WORKDIR /opt/app
COPY *.bas *.sh ./

RUN find . -name 'prime_*.bas' -exec fbc {} -x {}.run \;

FROM ubuntu:18.04
FROM ubuntu:22.04
WORKDIR /opt/app
COPY --from=build /opt/app/*run* ./

Expand Down
2 changes: 1 addition & 1 deletion PrimeIDL/solution_1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM primeimages/gdl:1.0.0-rc3
FROM primeimages/gdl:1.0.4

WORKDIR /opt/app

Expand Down
4 changes: 2 additions & 2 deletions PrimePascal/solution_1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM primeimages/freepascal:3.2.0 AS build
FROM primeimages/freepascal:3.2.2 AS build

WORKDIR /opt/app
COPY *.pas .

RUN fpc prime -O3

FROM ubuntu:20.04
FROM ubuntu:22.04
COPY --from=build /opt/app/prime /opt/app/

ENTRYPOINT [ "/opt/app/prime" ]
4 changes: 2 additions & 2 deletions PrimePascal/solution_2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM primeimages/freepascal:3.2.0 AS build
FROM primeimages/freepascal:3.2.2 AS build

WORKDIR /opt/app
COPY *.pas .

RUN fpc prime

FROM ubuntu:20.04
FROM ubuntu:22.04
COPY --from=build /opt/app/prime /opt/app/

ENTRYPOINT [ "/opt/app/prime" ]
4 changes: 2 additions & 2 deletions PrimePascal/solution_3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM primeimages/freepascal:3.2.0 AS build
FROM primeimages/freepascal:3.2.2 AS build

WORKDIR /opt/app
COPY *.pas run.sh ./

RUN fpc PrimePas -O3 -v0

FROM ubuntu:20.04
FROM ubuntu:22.04
WORKDIR /opt/app
COPY --from=build /opt/app/PrimePas /opt/app/run.sh /opt/app/

Expand Down

0 comments on commit 1b3cc27

Please sign in to comment.