Add depot, attendant, jetfire, optimus, ota services with kustomize overlays
This commit is contained in:
25
services/optimus/Dockerfile
Normal file
25
services/optimus/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
ARG BASE_IMAGE=cloud_base_go
|
||||
FROM ${BASE_IMAGE} as builder-go
|
||||
|
||||
WORKDIR /build/optimus
|
||||
COPY ./optimus/go.mod ./optimus/go.sum ./
|
||||
RUN go mod edit -replace fiskerinc.com/modules=../fiskerinc.com/modules \
|
||||
&& go mod download
|
||||
|
||||
COPY ./optimus ./
|
||||
RUN go mod edit -replace fiskerinc.com/modules=../fiskerinc.com/modules \
|
||||
&& go build -v fiskerinc.com/modules/dbc/fm29_frsd0 && go build -tags musl
|
||||
|
||||
|
||||
FROM alpine:3.17
|
||||
|
||||
RUN apk add --no-cache librdkafka --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
&& apk add --no-cache ca-certificates
|
||||
|
||||
COPY ./modules_go/logger/log_config .
|
||||
COPY --from=builder-go /build/optimus/optimus .
|
||||
|
||||
ENV LOG_CONFIG=log_config
|
||||
EXPOSE 8077
|
||||
|
||||
CMD ./optimus
|
||||
Reference in New Issue
Block a user