added frontend and updated backend with docker, wrote some initial instructions

This commit is contained in:
Elmar Kresse
2023-09-19 21:34:29 +02:00
parent b8a638a5fe
commit c051995823
87 changed files with 4987 additions and 1574 deletions

18
backend/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM golang:1.20.5-alpine
# Set the Current Working Directory inside the container
WORKDIR /app
# Copy go mod and sum files
COPY go.mod go.sum ./
RUN go mod download
# Copy the source from the current directory to the Working Directory inside the container
COPY *.go ./
COPY .. .
# Build the Go app
RUN CGO_ENABLED=0 GOOS=linux go build -o /htwkalender
# Expose port 8080 to the outside world
EXPOSE 8080