mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-23 14:46:07 +09:00
[build] Add stage labels to container images
This commit is contained in:
parent
1e60ed665d
commit
32faf7e0ea
@ -1,6 +1,7 @@
|
|||||||
# syntax = docker/dockerfile:1.2
|
# syntax = docker/dockerfile:1.2
|
||||||
## Install dev and compilation dependencies, build files
|
## Install dev and compilation dependencies, build files
|
||||||
FROM alpine:3.20 as build
|
FROM alpine:3.20 as build
|
||||||
|
LABEL stage=build
|
||||||
WORKDIR /iceshrimp
|
WORKDIR /iceshrimp
|
||||||
|
|
||||||
# Install compilation dependencies
|
# Install compilation dependencies
|
||||||
@ -32,6 +33,7 @@ RUN --mount=type=cache,target=/iceshrimp/.yarncache_focused rm -rf .yarncache/*
|
|||||||
|
|
||||||
## Runtime container
|
## Runtime container
|
||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
|
LABEL stage=runtime
|
||||||
WORKDIR /iceshrimp
|
WORKDIR /iceshrimp
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user