how does Docker work lol

This commit is contained in:
bdnugget 2024-09-18 22:51:26 +02:00
parent f88f97bd0c
commit d8ee53cf7a

View File

@ -20,10 +20,11 @@ RUN go build -o main cmd/main.go
FROM scratch
# Copy the built application from the build stage
COPY --from=build /app/main /main
WORKDIR /app
COPY --from=build /app/main /app/
# Expose the port
EXPOSE 1337
# Run the command to start the application
CMD ["/main"]
CMD ["./main"]