create docker container
All checks were successful
Build and push image for websocket http cache / docker (push) Successful in 16s
All checks were successful
Build and push image for websocket http cache / docker (push) Successful in 16s
This commit is contained in:
parent
172fe69359
commit
6c73c578a0
21
.gitea/workflows/docker-image.yaml
Normal file
21
.gitea/workflows/docker-image.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Build and push image for websocket http cache
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
name: Check out code
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker buildx build . -t gitea.chromart.cc/martin/websocket-http-cache:v1 -t gitea.chromart.cc/martin/websocket-http-cache:latest
|
||||||
|
|
||||||
|
- name: Login to Docker
|
||||||
|
run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.cc --username ${{ secrets.USERNAME }} --password-stdin
|
||||||
|
|
||||||
|
- name: Push Docker image
|
||||||
|
run: docker image push --all-tags gitea.chromart.cc/martin/websocket-http-cache
|
||||||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM oven/bun
|
||||||
|
|
||||||
|
ADD src src
|
||||||
|
ADD bun.lockb bun.lockb
|
||||||
|
ADD package.json package.json
|
||||||
|
|
||||||
|
# install all deps
|
||||||
|
RUN bun install
|
||||||
|
WORKDIR /home/bun/app
|
||||||
|
|
||||||
|
# start server
|
||||||
|
CMD bun run ./src/server.ts
|
||||||
Loading…
x
Reference in New Issue
Block a user