Skip to content

Commit

Permalink
chore: update dockerfile and .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Reknij committed May 13, 2024
1 parent d512e74 commit 55ed99e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-data/
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ COPY ./server/ .
RUN cargo build --target x86_64-unknown-linux-musl --release

# Node
FROM node:16-alpine as node_build
FROM node:20-alpine as node_build
WORKDIR /myapp
COPY ./web/ .
RUN npm install
RUN npm run build
RUN npm run generate

# Alpine
FROM alpine:3.17
COPY --from=builder /myapp/target/x86_64-unknown-linux-musl/release/diosic /
COPY --from=node_build /myapp/dist/ /webpage
COPY --from=node_build /myapp/.output/public/ /webpage
VOLUME ["/library", "/data"]
ENV LIB_NAME_1="My Library"
CMD /diosic -d /data -l "${LIB_NAME_1};/library"
ENV PUBLIC_URL=""
CMD /diosic --data-path /data -l "${LIB_NAME_1};/library" --public-url "${PUBLIC_URL}" serve

0 comments on commit 55ed99e

Please sign in to comment.