Compare commits
2 Commits
26f2e14e85
...
34f0d0ff3a
Author | SHA1 | Date | |
---|---|---|---|
34f0d0ff3a | |||
3d3e428755 |
19
.gitea/workflows/docker.yaml
Normal file
19
.gitea/workflows/docker.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
name: Build AirSignal Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to container registry
|
||||
run: echo ${{ secrets.CONTAINER_REGISTRY_TOKEN }} | docker login -u ${{ secrets.CONTAINER_REGISTRY_USER }} http://gitea:3000
|
||||
- name: Build Docker image
|
||||
run: docker build . --file Dockerfile --tag christoph/airsignal:latest
|
||||
- name: Push Docker image
|
||||
run: docker push christoph/airsignal:latest
|
||||
|
||||
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
# Using official node image as a parent image
|
||||
FROM public.ecr.aws/docker/library/node:20-alpine3.18
|
||||
|
||||
# Create working directory
|
||||
RUN mkdir /app
|
||||
|
||||
# Setting the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install AirSignal dependencies
|
||||
RUN npm install
|
||||
|
||||
# AirSignal port
|
||||
EXPOSE 12776
|
||||
|
||||
# Run AirSignal when the container launches
|
||||
CMD ["node", "server.js"]
|
Reference in New Issue
Block a user