diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d8e8c10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM golang:1.23.3 as build + +# Set the working directory +WORKDIR /app + +# Copy the source code +COPY . . + +# Build the Go application +RUN CGO_ENABLED=0 GOOS=linux go build -o meeting . + +# Stage 2: Final stage +FROM alpine:edge + +# Set the working directory +WORKDIR /app + +# Copy the binary from the build stage +COPY --from=build /app/meeting . +COPY static static + +# Set the timezone and install CA certificates +RUN apk --no-cache add ca-certificates tzdata + +# Set the entrypoint command +ENTRYPOINT ["/app/meeting"] diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..ef793e7 --- /dev/null +++ b/Readme.md @@ -0,0 +1,15 @@ +# Meeting + +## Build docker +```bash +docker build -t meeting . +``` + +## Run docker +```bash +docker run -p 3333:3333 meeting +``` +or +```bash +docker-compose up +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3fb3e23 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.6' + +services: + meeting: + image: meeting + ports: + - "3333:3333" + restart: always \ No newline at end of file