Skip to content

Instantly share code, notes, and snippets.

@rez-f
Created April 9, 2022 16:55
Show Gist options
  • Save rez-f/88e99bf655bfd7c75c26a0511183e751 to your computer and use it in GitHub Desktop.
Save rez-f/88e99bf655bfd7c75c26a0511183e751 to your computer and use it in GitHub Desktop.
Wilayah Administratif Indonesia in Docker.
# This Dockerfile is used to build Wilayah Indonesia REST API in Docker without installing GO in you local system
# REST API is served by this repository https://github.com/yusufsyaifudin/wilayah-indonesia
# Make sure to clone the repository first
# Then place this Dockerfile in it's root directory
# All the Documentation is provided in https://github.com/yusufsyaifudin/wilayah-indonesia
FROM golang:alpine3.15
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -o artifacts/wilayah_indonesia main.go
CMD ["./artifacts/wilayah_indonesia"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment