Skip to content

Commit

Permalink
chore: speed up docker builds (#3540)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Nov 27, 2024
1 parent 4237f3e commit 1802b3d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 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
4 changes: 1 addition & 3 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 All @@ -31,7 +30,6 @@ RUN apt-get install -y ca-certificates
WORKDIR /root/

COPY --from=builder /src/build/release/ftl-runner .
COPY --from=builder /src/build/release/ftl .
RUN mkdir deployments

EXPOSE 8894
Expand Down

0 comments on commit 1802b3d

Please sign in to comment.