Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Build inside lopsided/archlinux for multiplatform support
# It's an arch linux image with support for both ARM64 and AMD64
FROM lopsided/archlinux

# Alpine provides the same multiplatform support as arch.
FROM alpine

# GOPATH AND GOBIN ON PATH
ENV GOPATH=/go
ENV PATH=$PATH:/go/bin

# INSTALL DEPENDENCIES
RUN pacman -Syyu --noconfirm go npm make git which && \
RUN apk add --no-cache go npm make git bash which protoc && \
mkdir /go

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

# WE NEED BOTH NODE AND GO, DISTROLESS IS NOT THE WAY HERE. REVISIT LATER.
# Copy into a distroless image so that ONLY the starport binary remains
# FROM gcr.io/distroless/base
# COPY --from=builder /starport/build/starport /

# EXPOSE 12345
# EXPOSE 8080
# EXPOSE 1317
# EXPOSE 26656
# EXPOSE 26657
# EXPOSE PORTS
EXPOSE 12345
EXPOSE 8080
EXPOSE 1317
EXPOSE 26656
EXPOSE 26657

# CMD ["/starport"]