[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/SHIFT-R/aidea-server/main/Dockerfile [Back]  [Original]

# build stage
FROM golang:1.21 AS builder
ENV GOPROXY=https://goproxy.io,direct
WORKDIR /data
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -ldflags "-s -w" -o /data/bin/aidea-server cmd/main.go

# final stage
FROM ubuntu:22.04

ENV TZ=Asia/Shanghai

RUN apt-get -y update && DEBIAN_FRONTEND="nointeractive" apt install -y tzdata ca-certificates --no-install-recommends && rm -r /var/lib/apt/lists/*
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /data
COPY --from=builder /data/bin/aidea-server /usr/local/bin/
EXPOSE 8080

ENTRYPOINT ["/usr/local/bin/aidea-server", "--conf", "/etc/aidea.yaml"]

Web Proxy Viewer  |  New URL  |  Original Page