Add Dockerfile and GitHub Action workflow

This commit is contained in:
smita050 2024-06-02 23:47:44 +05:30
parent 574ea58b95
commit c83fc26f96
1 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,15 @@
FROM golang:1.16
WORKDIR /app
COPY . .
RUN go mod download
RUN go build -o /guestbook-go
EXPOSE 3000
CMD ["/guestbook-go"]
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");