Skip to content

Commit

Permalink
fix: container scratch image
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Feb 4, 2023
1 parent 41b0858 commit 0bd317b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containerised/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Builder ##
#############

FROM --platform=linux/amd64 rust:slim as builder
FROM --platform=linux/amd64 rust:slim as BUILDER

ARG TARGETARCH

Expand Down Expand Up @@ -49,13 +49,13 @@ RUN cp /usr/src/oxker/target/$(cat /.platform)/release/oxker /
## Runtime ##
#############

FROM alpine:latest AS runtime
FROM scratch AS RUNTIME

# Set an ENV that we're running in a container, so that the application can sleep for 250ms at start
ENV OXKER_RUNTIME=container

# Copy application binary from builder image
COPY --from=builder /oxker /usr/local/bin
COPY --from=BUILDER /oxker /usr/local/bin

# Run the application
# this is used in the application itself, to stop itself show when running from a docker container, so DO NOT EDIT
Expand Down

0 comments on commit 0bd317b

Please sign in to comment.