forked from mirrors/amnezia-wg-easy
move files
This commit is contained in:
parent
781d56d0ff
commit
a9c798deda
6 changed files with 2 additions and 52 deletions
11
Dockerfile
11
Dockerfile
|
@ -11,12 +11,6 @@ WORKDIR /app
|
|||
RUN npm ci --omit=dev &&\
|
||||
mv node_modules /node_modules
|
||||
|
||||
# Copy script wg-password
|
||||
COPY wg-password /wgpw
|
||||
WORKDIR /wgpw
|
||||
RUN npm i --omit=dev &&\
|
||||
mv node_modules /node_modules_wg
|
||||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:20-alpine
|
||||
|
@ -33,10 +27,7 @@ COPY --from=build_node_modules /app /app
|
|||
COPY --from=build_node_modules /node_modules /node_modules
|
||||
|
||||
# Copy the needed wg-password scripts
|
||||
COPY --from=build_node_modules /node_modules_wg /node_modules_wg
|
||||
COPY --from=build_node_modules /wgpw/index.mjs /wgpw/index.mjs
|
||||
COPY --from=build_node_modules /wgpw/wgpw.sh /bin/wgpw
|
||||
|
||||
COPY --from=build_node_modules /app/wgpw.sh /bin/wgpw
|
||||
RUN chmod +x /bin/wgpw
|
||||
|
||||
# Install Linux packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue