Skip to content

Commit

Permalink
Add APP_VERSION to prod Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Nov 27, 2024
1 parent 70a9c39 commit a07e1b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM rust:1.82 AS build

ARG APP_VERSION
ENV APP_VERSION=${APP_VERSION}

RUN apt update && apt install -y musl-tools musl-dev
RUN rustup target add x86_64-unknown-linux-musl

Expand All @@ -13,6 +16,9 @@ RUN cargo build --target x86_64-unknown-linux-musl --release --quiet

FROM alpine:3.17

ARG APP_VERSION
ENV APP_VERSION=${APP_VERSION}

RUN apk add --no-cache util-linux

## Import from builder.
Expand Down
3 changes: 3 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:22.5.1-alpine AS build

ARG APP_VERSION
ENV APP_VERSION=${APP_VERSION}

WORKDIR /app
COPY . .

Expand Down

0 comments on commit a07e1b3

Please sign in to comment.