Skip to content

Commit

Permalink
Merge remote-tracking branch 'wg-easy/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartegnian committed May 1, 2024
2 parents 0db9ab3 + 9b5b8c7 commit 2cb97e8
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 176 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/src/node_modules
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
FROM docker.io/library/node:18-alpine AS build_node_modules

# Copy Web UI
COPY src/ /app/
COPY src /app
WORKDIR /app
RUN npm ci --omit=dev &&\
# Enable this to run `npm run serve`
npm i -g nodemon &&\
# Delete unnecessary files
npm cache clean --force && rm -rf ~/.npm &&\
mv node_modules /node_modules

# Copy build result to a new image.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "1.0.1",
"scripts": {
"build": "DOCKER_BUILDKIT=1 docker build --tag wg-easy-m3 .",
"serve": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up",
"serve": "docker compose -f docker-compose.yml -f docker-compose.dev.yml up",
"start": "docker run --env WG_HOST=0.0.0.0 --name wg-easy-m3 --cap-add=NET_ADMIN --cap-add=SYS_MODULE --sysctl=\"net.ipv4.conf.all.src_valid_mark=1\" --mount type=bind,source=\"$(pwd)\"/config,target=/etc/wireguard -p 51820:51820/udp -p 51821:51821/tcp wg-easy-m3"
}
}
Loading

0 comments on commit 2cb97e8

Please sign in to comment.