Skip to content

Commit 8a936a4

Browse files
authored
Merge pull request #9 from mutablelogic/master
Bring branches in sync
2 parents 1af064e + 54c8f0b commit 8a936a4

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

etc/.DS_Store

-6 KB
Binary file not shown.

etc/docker/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# recommended way to build is using:
2+
# docker build \
3+
# --build-arg PLATFORM=linux --build-arg ARCH=amd64 --build-arg VERSION=bullseye \
4+
# -f etc/docker/Dockerfile .
5+
#
6+
ARG PLATFORM
7+
ARG ARCH
8+
ARG VERSION
9+
FROM --platform=${PLATFORM}/${ARCH} golang:1.19-${VERSION} AS builder
10+
11+
# Run makefile to build command-line tools
12+
WORKDIR /usr/src/app
13+
COPY . .
14+
RUN make
15+
16+
FROM --platform=${PLATFORM}/${ARCH} ubuntu:${VERSION}
17+
COPY --from=builder /usr/src/app/build/* /usr/local/bin/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)