add readme and dockers and make this presentable lol

This commit is contained in:
2024-07-13 22:05:17 +03:00
parent bbce1fb05f
commit 0c3ec631f6
6 changed files with 100 additions and 1 deletions

22
backend/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM golang:1.22.3-alpine as build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
# Copy the rest of the application code to the working directory
COPY . .
RUN go build -o main .
FROM alpine:latest
WORKDIR /app
COPY --from=build /app/main .
EXPOSE 8080
CMD ["./main"]