GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — status/Dockerfile.prod at master · trydirect/status

Expand file tree

/

Dockerfile.prod

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (32 loc) · 995 Bytes
/

Dockerfile.prod

Copy path

File metadata and controls

35 lines (32 loc) · 995 Bytes
Raw
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
# syntax=docker/dockerfile:1.4
FROM clux/muslrust:stable AS builder
ARG TARGETARCH
WORKDIR /app
COPY Cargo.toml Cargo.lock* ./
COPY build.rs build.rs
COPY proto proto
COPY src src
COPY templates templates
COPY static static
COPY config.json config.json
COPY stacker/crates stacker/crates
# Build a statically linked binary for the target architecture.
RUN case "${TARGETARCH}" in \
amd64) RUST_TARGET="x86_64-unknown-linux-musl" ;; \
arm64) RUST_TARGET="aarch64-unknown-linux-musl" ;; \
*) echo "Unsupported TARGETARCH: ${TARGETARCH}" >&2; exit 1 ;; \
esac && \
rustup target add "${RUST_TARGET}" && \
cargo build --release --target "${RUST_TARGET}" && \
cp "target/${RUST_TARGET}/release/status" /status
FROM gcr.io/distroless/cc
WORKDIR /app
COPY --from=builder /status /status
COPY templates templates
COPY static static
COPY config.json config.json
ENV RUST_LOG=info
EXPOSE 5000
USER 0
ENTRYPOINT ["/status"]
CMD ["serve", "--port", "5000", "--with-ui"]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.