Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
42 lines (27 loc) · 916 Bytes

File metadata and controls

42 lines (27 loc) · 916 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# @@@SNIPSTART oms-dockerfile-worker
FROM golang:1.24.1 AS oms-builder
WORKDIR /usr/src/oms
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go mod download
COPY app ./app
COPY cmd ./cmd
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 go build -v -o /usr/local/bin/oms ./cmd/oms
FROM busybox AS oms-worker
# @@@SNIPEND
COPY --from=oms-builder /usr/local/bin/oms /usr/local/bin/oms
ENTRYPOINT ["/usr/local/bin/oms", "worker"]
FROM busybox AS oms-api
EXPOSE 8081
EXPOSE 8082
EXPOSE 8083
EXPOSE 8084
COPY --from=oms-builder /usr/local/bin/oms /usr/local/bin/oms
ENTRYPOINT ["/usr/local/bin/oms", "api"]
FROM busybox AS oms-codec-server
EXPOSE 8089
COPY --from=oms-builder /usr/local/bin/oms /usr/local/bin/oms
ENTRYPOINT ["/usr/local/bin/oms", "codec-server"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.