Skip to content

Commit

Permalink
Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
dzahariev committed May 27, 2024
1 parent 6f2cbe1 commit eaea805
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ RUN npm install
RUN npm run build

# Backend Build
FROM --platform=$BUILDPLATFORM golang:1.22 AS build
FROM --platform=$BUILDPLATFORM golang AS build
WORKDIR /go/src/github.com/dzahariev/taskboard
COPY . ./
ARG TARGETOS TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -installsuffix cgo -o /main main.go

# Release
FROM --platform=$BUILDPLATFORM ubuntu:jammy AS release
FROM alpine:3 AS release
VOLUME ["/tasks"]
WORKDIR /
COPY --from=build-ui /usr/app/dist /public
COPY ./ui/sap-ui-version.json /public/resources/sap-ui-version.json
COPY --from=build /main /
ENTRYPOINT [ "./main" ]
ENTRYPOINT [ "./main" ]
EXPOSE 8800

0 comments on commit eaea805

Please sign in to comment.