Skip to content

Commit

Permalink
add docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Oct 16, 2024
1 parent 44a2d67 commit 4309e31
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker

on:
push:
branches: [ "main" ]
workflow_dispatch:
inputs:
tag:
description: 'Docker tag for build results'
type: string
default: manual
required: true

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read # for checkout
id-token: write # for OIDC token, used for Depot
packages: write # to upload build to GHCR
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker
uses: docker/build-push-action@v1
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/manyfold3d/tracking:edge
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.3.5
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:3.3

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY . /usr/src/app
RUN bundle install

EXPOSE 9292

CMD [ "rackup", "-o", "0.0.0.0" ]

0 comments on commit 4309e31

Please sign in to comment.