Skip to content

Commit dc25f45

Browse files
authored
fix: alpine-Dockerfile (ignite#741)
* Update Dockerfile This needed some alpine air; changed the image from arch to alpine. It should work identically. * Update Dockerfile add a comment and hopefully trigger actions * Update Dockerfile * Update Dockerfile install and use bash * Update Dockerfile protoc
1 parent 02cba07 commit dc25f45

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

Dockerfile

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# Build inside lopsided/archlinux for multiplatform support
2-
# It's an arch linux image with support for both ARM64 and AMD64
3-
FROM lopsided/archlinux
4-
1+
# Alpine provides the same multiplatform support as arch.
2+
FROM alpine
53

64
# GOPATH AND GOBIN ON PATH
75
ENV GOPATH=/go
86
ENV PATH=$PATH:/go/bin
97

108
# INSTALL DEPENDENCIES
11-
RUN pacman -Syyu --noconfirm go npm make git which && \
9+
RUN apk add --no-cache go npm make git bash which protoc && \
1210
mkdir /go
1311

1412
# COPY STARPORT SOURCE CODE INTO CONTAINER
@@ -22,15 +20,10 @@ RUN PATH=$PATH:/go/bin && \
2220
# CMD
2321
CMD ["/go/bin/starport"]
2422

25-
# WE NEED BOTH NODE AND GO, DISTROLESS IS NOT THE WAY HERE. REVISIT LATER.
26-
# Copy into a distroless image so that ONLY the starport binary remains
27-
# FROM gcr.io/distroless/base
28-
# COPY --from=builder /starport/build/starport /
29-
30-
# EXPOSE 12345
31-
# EXPOSE 8080
32-
# EXPOSE 1317
33-
# EXPOSE 26656
34-
# EXPOSE 26657
23+
# EXPOSE PORTS
24+
EXPOSE 12345
25+
EXPOSE 8080
26+
EXPOSE 1317
27+
EXPOSE 26656
28+
EXPOSE 26657
3529

36-
# CMD ["/starport"]

0 commit comments

Comments
 (0)