diff --git a/dockerfile b/dockerfile index 3772207..14722cd 100644 --- a/dockerfile +++ b/dockerfile @@ -3,20 +3,19 @@ # -------------------------- FROM golang:1.22.5-alpine AS builder -# Set the working directory inside the container WORKDIR /app -# Install required build tools +#* Install required build tools RUN apk --no-cache add build-base git -# Cache dependencies by copying go.mod and go.sum first +#* Cache dependencies by copying go.mod and go.sum first COPY go.mod go.sum ./ RUN go mod download -# Copy the rest of the application source code +#* Copy the rest of the application source code COPY . . -# Build the Go binary using the provided Makefile +#* Build the Go binary using the provided Makefile RUN make build # -------------------------- @@ -24,18 +23,18 @@ RUN make build # -------------------------- FROM alpine:latest -# Set the working directory inside the runtime container WORKDIR /app -# Define build-time arguments and environment variables +#* Define build-time arguments and environment variables ARG IMMO_MONGO_URI ENV IMMO_MONGO_URI=${IMMO_MONGO_URI} -# Copy the compiled binary from the builder stage +#* Copy the compiled binary from the builder stage COPY --from=builder /app/build/immortal . -# Copy the default configuration (can be overridden later in a wrapping image) -COPY --from=builder /app/config/config.yml ./config.yml +#* Expose necessary ports for the application +EXPOSE 7777 +EXPOSE 8888 # Set the entrypoint to run the application ENTRYPOINT ["./immortal", "run", "./config.yml"] diff --git a/version.go b/version.go index f5007fe..1769683 100644 --- a/version.go +++ b/version.go @@ -8,7 +8,7 @@ var ( major = 0 minor = 0 patch = 1 - meta = "beta" + meta = "" ) func StringVersion() string {