Skip to content

CODE: Add Dockerfile #1

CODE: Add Dockerfile

CODE: Add Dockerfile #1

Workflow file for this run

name: Build and Run Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
run: docker build -t my-app:latest ./api
- name: Run Docker container
run: docker run -d -p 8080:8080 --name di di:latest