Merged in feature/devbox (pull request #11)
Add Devbox * adddevbox * cleanupdockerfile * testscripts
This commit is contained in:
+6
-2
@@ -1,8 +1,10 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG GO_VERSION=1.23
|
||||
|
||||
FROM golang:${GO_VERSION} AS build
|
||||
WORKDIR /src
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN --mount=type=cache,target=/go/pkg/mod/ \
|
||||
--mount=type=bind,source=go.sum,target=go.sum \
|
||||
@@ -17,6 +19,8 @@ RUN --mount=type=cache,target=/go/pkg/mod/ \
|
||||
|
||||
FROM scratch AS final
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY database/migrations/ database/migrations/
|
||||
|
||||
COPY --from=build /bin/ /bin/
|
||||
COPY --from=build /bin/ .
|
||||
|
||||
Reference in New Issue
Block a user