Commit e0008b70 authored by brent's avatar brent

add dockerfile

parent 13c85103
Pipeline #681 failed with stages
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
FROM golang:1.20-alpine AS build
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add --no-cache bash git openssh make build-base
RUN go env -w CGO_ENABLED="1"
WORKDIR /build
RUN git clone https://code.wuban.net.cn/odysseus/admin-backend
RUN cd /build/admin-backend && go build -o /admin-backend
FROM alpine
WORKDIR /root
COPY --from=build /admin-backend /usr/bin/admin-backend
ENTRYPOINT [ "admin-backend" ]
\ No newline at end of file
{"/Users/brent/Documents/wubanWork/ai_developer_admin/controllers":1706860693667738264}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment