Skip to content

Commit

Permalink
DEV-562 build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
obezpalko committed Oct 25, 2023
1 parent 409cdff commit 8b60f3e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: build kangas docker image
run-name: Build comet kangas ${{ github.ref_name }} by @${{ github.actor }}

on:
push:
branches:
- DEV-562-move-datagrid-kangas-server-to-k-8-s
workflow_dispatch:

jobs:
reusable-workflow:
uses: comet-ml/ga-workflows/.github/workflows/[email protected]
secrets: inherit
with:
docker-registry: ECR
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:slim

ENV PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/home/kangas/.local/bin

RUN useradd --uid 1001 --home-dir /home/kangas --create-home --shell /bin/bash kangas

USER kangas
WORKDIR /home/kangas

RUN pip install --upgrade pip
RUN pip install awscli kangas --upgrade --no-input

EXPOSE 4000/tcp 4001/tcp
ENTRYPOINT [ "kangas", "server", "--host=kangas-k8s.comet.com", "--protocol=https" ]

0 comments on commit 8b60f3e

Please sign in to comment.