Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Install "just" command runner when building Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Jun 14, 2024
1 parent 67876ac commit 236a271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM rust as just
RUN cargo install just

FROM node:22.2.0 as build
WORKDIR /app
COPY package*.json ./
RUN npm install --no-save
COPY . .
COPY --from=just /usr/local/cargo/bin/just /usr/local/bin/just
ENV GITHUB_API_BASE_URL="" GITHUB_LOGIN="" GITHUB_API_TOKEN_FILE=""
RUN npm run build
RUN just build

FROM node:22.2.0-alpine as runtime
RUN mkdir -p /home/node/app/node_modules && chown --recursive node:node /home/node/app
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"volta": {
"node": "22.2.0"
},
"scripts": {
"build": "astro build"
},
"scripts": {},
"dependencies": {
"@astrojs/node": "8.3.0",
"@astrojs/vue": "4.4.0",
Expand Down

0 comments on commit 236a271

Please sign in to comment.