Fix dockerfile
All checks were successful
Build and Publish Docker Container / build (push) Successful in 3m37s

This commit is contained in:
Joshua Coles 2024-03-03 21:05:41 +00:00
parent c2b8b36499
commit 63637c0f4e

View File

@ -3,9 +3,9 @@
################################################################################
# Create a stage for building the application.
ARG RUST_VERSION=1.71.1
ARG APP_NAME=timing-beachhead
ARG PACKAGE_NAME=beachhead
ARG RUST_VERSION=1.76.0
ARG APP_NAME=toggl-portal
ARG PACKAGE_NAME=toggl-portal
FROM rust:${RUST_VERSION}-slim-bullseye AS build
ARG APP_NAME
ARG PACKAGE_NAME
@ -28,9 +28,7 @@ RUN apt-get update && \
# source code into the container. Once built, copy the executable to an
# output directory before the cache mounted /app/target is unmounted.
RUN --mount=type=bind,source=src,target=src \
--mount=type=bind,source=obsidian-portal,target=obsidian-portal \
--mount=type=bind,source=toggl-portal,target=toggl-portal \
--mount=type=bind,source=lectures-portal,target=lectures-portal \
--mount=type=bind,source=migration,target=migration \
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
--mount=type=cache,target=/app/target/ \