Created
April 9, 2022 16:55
-
-
Save rez-f/88e99bf655bfd7c75c26a0511183e751 to your computer and use it in GitHub Desktop.
Wilayah Administratif Indonesia in Docker.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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