Skip to content

Commit 8e55e93

Browse files
committed
docker containers
1 parent 4975e57 commit 8e55e93

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

dockerfiles/amd64/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM alpine:3.7
2+
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
3+
COPY n2proxy /
4+
WORKDIR /
5+
6+
ENTRYPOINT ["/n2proxy"]

dockerfiles/arm/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM arm32v6/alpine:3.6
2+
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
3+
COPY n2proxy /
4+
WORKDIR /
5+
6+
ENTRYPOINT ["/n2proxy"]

goreleaser.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ build:
1515
- linux
1616
- darwin
1717
- arm
18-
- arm64
1918

2019
# GOARCH to build in.
2120
# For more info refer to https://golang.org/doc/install/source#environment
2221
# Defaults are 386 and amd64
2322
goarch:
2423
- amd64
24+
- arm
2525

2626
ldflags: -s -w -X main.Version={{.Version}}
2727

@@ -96,4 +96,25 @@ snapcraft:
9696
Contraband filtering reverse proxy. Provide a list of Regular Expression used to
9797
detect and block hacking attempts.
9898
grade: stable
99-
confinement: classic
99+
confinement: classic
100+
101+
dockers:
102+
-
103+
goos: linux
104+
goarch: amd64
105+
goarm: ''
106+
binary: n2proxy
107+
image: txn2/n2proxy
108+
dockerfile: dockerfiles/amd64/Dockerfile
109+
tag_templates:
110+
- "{{ .Version }}"
111+
- latest
112+
-
113+
goos: linux
114+
goarch: arm
115+
goarm: 6
116+
binary: n2proxy
117+
image: txn2/n2proxy
118+
dockerfile: dockerfiles/arm/Dockerfile
119+
tag_templates:
120+
- "armhf-{{ .Version }}"

0 commit comments

Comments
 (0)