mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-09-27 03:56:15 +08:00
nodejs: use lts as version tag
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: 'lts/*'
|
||||
check-latest: true
|
||||
cache: 'npm'
|
||||
|
||||
|
2
.github/workflows/npm-update-bot.yml
vendored
2
.github/workflows/npm-update-bot.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: 'lts/*'
|
||||
check-latest: true
|
||||
cache: 'npm'
|
||||
|
||||
|
@@ -13,7 +13,7 @@ RUN npm ci --omit=dev &&\
|
||||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:20-alpine
|
||||
FROM docker.io/library/node:lts-alpine
|
||||
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3
|
||||
COPY --from=build_node_modules /app /app
|
||||
|
||||
@@ -46,4 +46,4 @@ ENV DEBUG=Server,WireGuard
|
||||
|
||||
# Run Web UI
|
||||
WORKDIR /app
|
||||
CMD ["/usr/bin/dumb-init", "node", "server.js"]
|
||||
CMD ["/usr/bin/dumb-init", "node", "server.js"]
|
||||
|
Reference in New Issue
Block a user