diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..8a57e2e85c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,53 @@ +# Usage: +# +## Linux: +# ``` +### To utilize the BuildKit cache use: +# DOCKER_BUILDKIT=1 docker build -t fiber . +# +# docker run -it --rm fiber make lint && make test +# ``` +# +## Windows: +# ``` +### To utilize the BuildKit cache use: +# docker build -t fiber . +# +# docker run -it --rm fiber make lint && make test +# ``` +# +# Note: BuildKit is the default builder for users on Docker Desktop. + + +# Use the official Golang image to create a build artifact. +FROM golang:latest AS builder + +RUN <