basic changes
This commit is contained in:
1 parent
ce5417ef2c
commit
0905b4bb5b
4 files changed
+111
-1
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
FROM golang:1.19
|
||||
WORKDIR /app
|
||||
# Copy everything from the current directory to the PWD (Present Working Directory) inside the container
|
||||
COPY . .
|
||||
|
||||
# Download all the dependencies
|
||||
RUN go get -d -v ./...
|
||||
|
||||
# Install the package
|
||||
RUN go install -v ./...
|
||||
|
||||
RUN make
|
||||
RUN go build -o bin/main src/*.go
|
||||
|
||||
# This container exposes port 8080 to the outside world
|
||||
EXPOSE 4000
|
||||
|
||||
# Run the executable
|
||||
CMD ["bin/main"]
|
||||
Reference in new issue
Block a user