Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created November 6, 2022 17:11
Show Gist options
  • Save khannedy/60d4a23b7f744d12d2d84c63952ae744 to your computer and use it in GitHub Desktop.
Save khannedy/60d4a23b7f744d12d2d84c63952ae744 to your computer and use it in GitHub Desktop.
FROM golang:1.18-alpine
ENV APP_PORT=8080
ENV MODE=local
RUN mkdir app
COPY main.go app
EXPOSE ${APP_PORT}
CMD go run app/main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment