Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: speed up docker builds #3540

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading