-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added node and debian version as args to Dockerfile
- Loading branch information
1 parent
26687c1
commit 4b3719c
Showing
3 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
ARG DEBIAN_VERSION=bookworm | ||
ARG NODE_VERSION=20 | ||
|
||
# Build | ||
FROM node:16.17-bullseye-slim AS builder | ||
FROM node:${NODE_VERSION}-${DEBIAN_VERSION}-slim AS builder | ||
ENV HOME /k2 | ||
COPY . ${HOME} | ||
WORKDIR ${HOME} | ||
RUN yarn | ||
|
||
# Copy to slim image | ||
FROM node:16.17-bullseye-slim | ||
FROM node:${NODE_VERSION}-${DEBIAN_VERSION}-slim | ||
LABEL maintainer "<[email protected]>" | ||
|
||
# In case you use an apt proxy somewhere | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters