File tree 6 files changed +9058
-692
lines changed
6 files changed +9058
-692
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' main'
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
+ - name : Login to Docker Hub
13
+ uses : docker/login-action@v1
14
+ with :
15
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
16
+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
17
+ - name : Set up Docker Buildx
18
+ uses : docker/setup-buildx-action@v1
19
+ - name : Build and push
20
+ uses : docker/build-push-action@v2
21
+ with :
22
+ context : .
23
+ file : ./Dockerfile
24
+ push : true
25
+ tags : dashlabsai/wireguard-manager:latest
Original file line number Diff line number Diff line change 1
- FROM node:12 -alpine
1
+ FROM node:14 -alpine
2
2
3
3
RUN apk --no-cache add wireguard-tools iptables ip6tables inotify-tools tini
4
4
RUN deluser --remove-home node
5
5
6
6
WORKDIR /usr/src/app
7
7
8
8
COPY package*.json ./
9
- RUN npm install
9
+ RUN npm ci
10
10
COPY . .
11
11
RUN chmod 755 ./server.sh
12
12
You can’t perform that action at this time.
0 commit comments