File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ services:
1111 - 23:23
1212 - 8080:8080
1313 env_file :
14- - ./env./env.prod
15-
16-
17-
14+ - ./env/.env
15+ volumes :
16+ - /tmp/go_app_riot/logs:/app/logger
Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ LABEL maintainer="Shreyas Srinivasa <shsr@es.aau.dk>"
99# Set the Current Working Directory inside the container
1010WORKDIR /app
1111
12- # Copy go mod and sum files
13- COPY go.mod go.sum ./
12+ # Copy the source from the current directory to the Working Directory inside the container
13+ COPY ./riotpot .
14+
15+ # Create the logger directroy for logs generated by the application
16+ RUN mkdir -p ./logger
1417
1518# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed
1619RUN go mod download
1720
18- # Copy the source from the current directory to the Working Directory inside the container
19- COPY . .
20-
2121# Build the Go app
22- RUN go build -o main .
22+ RUN go build .
2323
2424# Expose port 8080 to the outside world
2525EXPOSE 8080
2626
2727# Command to run the executable
28- CMD ["./bin/ riotpot" ]
28+ CMD ["./riotpot" ]
You can’t perform that action at this time.
0 commit comments