how does Docker work lol
This commit is contained in:
parent
f88f97bd0c
commit
d8ee53cf7a
@ -20,10 +20,11 @@ RUN go build -o main cmd/main.go
|
|||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
# Copy the built application from the build stage
|
# 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 the port
|
||||||
EXPOSE 1337
|
EXPOSE 1337
|
||||||
|
|
||||||
# Run the command to start the application
|
# Run the command to start the application
|
||||||
CMD ["/main"]
|
CMD ["./main"]
|
Loading…
x
Reference in New Issue
Block a user