This commit is contained in:
parent
ea61ba9ed7
commit
5f90d663cf
10
Dockerfile
10
Dockerfile
@ -1,3 +1,12 @@
|
||||
FROM node:16-alpine as web_builder
|
||||
|
||||
WORKDIR /usr/src/scel/web
|
||||
|
||||
COPY src/web/ .
|
||||
|
||||
RUN --mount=type=cache,target=/usr/src/scel/web/dist yarn
|
||||
RUN --mount=type=cache,target=/usr/src/scel/web/dist yarn build
|
||||
|
||||
FROM rust:1.60 as builder
|
||||
|
||||
WORKDIR /usr/src/scel
|
||||
@ -17,5 +26,6 @@ RUN python3 -m pip install -U yt-dlp
|
||||
|
||||
# Copy binary
|
||||
COPY --from=builder /usr/local/cargo/bin/scel /usr/local/bin/scel
|
||||
COPY --from=web_builder /usr/src/scel/web/dist /src/web/dist
|
||||
|
||||
CMD ["scel"]
|
||||
|
1
src/web/.dockerignore
Normal file
1
src/web/.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules/
|
Loading…
Reference in New Issue
Block a user