Skip to content

Commit

Permalink
chore: speed up docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Nov 27, 2024
1 parent 3c4ca76 commit 145da3a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.cron
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY . /src/
RUN just errtrace
# Reset timestamps so that the build state is reset
RUN git ls-files -z | xargs -0 touch -r go.mod
RUN just build ftl-cron
RUN just build-without-frontend ftl-cron

# Finally create the runtime image.
FROM scratch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.http-ingress
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY . /src/
RUN just errtrace
# Reset timestamps so that the build state is reset
RUN git ls-files -z | xargs -0 touch -r go.mod
RUN just build ftl-http-ingress
RUN just build-without-frontend ftl-http-ingress

# Finally create the runtime image.
FROM scratch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.initdb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY . /src/
RUN just errtrace
# Reset timestamps so that the build state is reset
RUN git ls-files -z | xargs -0 touch -r go.mod
RUN just build ftl-controller
RUN just build-without-frontend ftl-controller

# Finally create the runtime image.
FROM scratch
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.provisioner
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY . /src/
RUN just errtrace
# Reset timestamps so that the build state is reset
RUN git ls-files -z | xargs -0 touch -r go.mod
RUN just build ftl-provisioner ftl-provisioner-cloudformation
RUN just build-without-frontend ftl-provisioner ftl-provisioner-cloudformation

# Finally create the runtime image.
FROM scratch
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.runner
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ COPY . /src/
RUN just errtrace
# Reset timestamps so that the build state is reset
RUN git ls-files -z | xargs -0 touch -r go.mod
RUN just build ftl-runner
RUN just build ftl
RUN just build-without-frontend ftl-runner

# Finally create the runtime image.
FROM ubuntu:24.04
Expand Down

0 comments on commit 145da3a

Please sign in to comment.