feat: implement alpine docker image from #213
This commit is contained in:
parent
44ce925a96
commit
36e4e68a16
2 changed files with 5 additions and 5 deletions
6
.github/workflows/build_publish.yml
vendored
6
.github/workflows/build_publish.yml
vendored
|
|
@ -3,7 +3,7 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 6 * * 1'
|
- cron: '0 1 * * 1'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -19,5 +19,5 @@ jobs:
|
||||||
imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2
|
imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2
|
||||||
platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
|
platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
|
||||||
publish: true
|
publish: true
|
||||||
dockerHubUser: ${{ secrets.DOCKER_HUB_USER }}
|
dockerUser: ${{ secrets.DOCKER_HUB_USER }}
|
||||||
dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
dockerPassword: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
FROM node:8.6
|
FROM node:14.17-alpine
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
COPY app/ /usr/src/
|
COPY app/ /usr/src/
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
EXPOSE 2222
|
EXPOSE 2222/tcp
|
||||||
ENTRYPOINT [ "/usr/local/bin/node", "index.js" ]
|
ENTRYPOINT [ "/usr/local/bin/node", "index.js" ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue