create docker container
All checks were successful
Build and push image for websocket http cache / docker (push) Successful in 16s

This commit is contained in:
Martin Dimitrov 2024-09-30 11:32:02 -07:00
parent 172fe69359
commit 6c73c578a0
2 changed files with 33 additions and 0 deletions

View 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
View 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