diff options
| author | Fuwn <[email protected]> | 2023-10-26 15:41:57 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-10-26 15:41:57 -0700 |
| commit | 9bac3b6b6a9103841a3456436c65af66549a83da (patch) | |
| tree | 4273c0ebe5567109daf8b7a4d2c92d51694677cf /Dockerfile | |
| parent | fix(feeds): html encode title (diff) | |
| parent | feat: move back to bun (diff) | |
| download | due.moe-9bac3b6b6a9103841a3456436c65af66549a83da.tar.xz due.moe-9bac3b6b6a9103841a3456436c65af66549a83da.zip | |
merge: branch 'badges'
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -2,20 +2,28 @@ FROM oven/bun:1.0.1 as build WORKDIR /due +RUN apt update -y && apt upgrade -y + +RUN apt install sqlite3 -y + COPY package.json ./ RUN bun install COPY ./ ./ +RUN mkdir data + +RUN sqlite3 data/due_moe.sqlite3 < due_moe_schema.sql + RUN bun --bun vite build FROM oven/bun:1.0.1 WORKDIR /due -COPY --from=build /due/build . +COPY --from=build /due . EXPOSE 3000 -CMD ["bun", "./index.js"]
\ No newline at end of file +CMD ["bun", "./build/index.js"]
\ No newline at end of file |