Files
hal/Dockerfile
T
2023-08-13 02:15:47 +02:00

21 lines
433 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM golang:1.21.0
# Creates an app directory to hold your app’s source code
WORKDIR /app
# Copies everything from your root directory into /app
COPY . .
# Installs Go dependencies
RUN go mod download
# Builds your app with optional configuration
RUN go build
# Tells Docker which network port your container listens on
EXPOSE 3000
# Specifies the executable command that runs when the container starts
CMD [ “./hal” ]