docker fixed

This commit is contained in:
darius 2024-02-13 18:57:05 +01:00
parent 1555a97843
commit a4d40b2ae4
2 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ COPY . .
RUN go mod download RUN go mod download
# Build the Go app # Build the Go app
RUN go build -o main . RUN go build .
# Expose port 8080 for incoming traffic # Expose port 8080 for incoming traffic
EXPOSE 4002 EXPOSE 4002
# Define the command to run the app when the container starts # Define the command to run the app when the container starts
CMD ["go", "run"] CMD ["/portfolio-backend"]

BIN
main

Binary file not shown.