mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-05-13 05:52:01 +00:00
fix build
This commit is contained in:
parent
be8d24e492
commit
ebcc42cc49
1 changed files with 6 additions and 3 deletions
|
|
@ -23,6 +23,10 @@ RUN apk add linux-headers build-base go git && \
|
|||
cd ../amneziawg-tools/src && \
|
||||
make
|
||||
|
||||
FROM docker.io/library/node:krypton-alpine AS build-libsql
|
||||
WORKDIR /app
|
||||
RUN npm install --no-save --omit=dev libsql
|
||||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:krypton-alpine
|
||||
|
|
@ -35,9 +39,8 @@ COPY --from=build /app/.output /app
|
|||
# Copy migrations
|
||||
COPY --from=build /app/server/database/migrations /app/server/database/migrations
|
||||
# libsql (https://github.com/nitrojs/nitro/issues/3328)
|
||||
RUN cd /app/server && \
|
||||
npm install --no-save --omit=dev libsql && \
|
||||
npm cache clean --force
|
||||
COPY --from=build-libsql /app/node_modules /app/server/node_modules
|
||||
|
||||
# cli
|
||||
COPY --from=build /app/cli/cli.sh /usr/local/bin/cli
|
||||
RUN chmod +x /usr/local/bin/cli
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue