Skip to content

Commit

Permalink
Starting to implement build stage for Dockerfile.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed Jun 13, 2024
1 parent 088900c commit 3c2b722
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM --platform=linux/amd64 alpine:latest
FROM --platform=linux/amd64 golang:alpine as build

RUN apk add --no-cache musl-dev
WORKDIR /build
COPY . ./
ENV CGO_ENABLED=1 CC=x86_64-linux-musl-gcc GOOS=linux GOARCH=amd64
ENV DEST=volumes/modules
RUN CGO_ENABLED=$CGO_ENABLED CC=$CC GOOS=$GOOS GOARCH=$GOARCH go build -buildmode=plugin -o $DEST/module_set/module_set.so ./volumes/modules/module_set/module_set.go

FROM --platform=linux/amd64 build

RUN mkdir -p /usr/local/lib/echovault
RUN mkdir -p /opt/echovault/bin
Expand Down

0 comments on commit 3c2b722

Please sign in to comment.