Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions api/.env.example

This file was deleted.

160 changes: 0 additions & 160 deletions api/.gitignore

This file was deleted.

65 changes: 0 additions & 65 deletions api/main.py

This file was deleted.

24 changes: 0 additions & 24 deletions api/requirements.txt

This file was deleted.

17 changes: 0 additions & 17 deletions api/test_main.py

This file was deleted.

19 changes: 19 additions & 0 deletions front-end-nextjs/.github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and Publish image to Docker Hub
on:
push:
branches:
- main

jobs:
Build_and_publish_images:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4

- name: build image
run: docker build -t obinnanwaneri/docker-frontend:${{github.sha}} ./front-end-nextjs

- name: push images to docker hub
run: |
docker push obinnanwaneri/docker-frontend:${{github.sha}}
15 changes: 15 additions & 0 deletions front-end-nextjs/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine AS base

WORKDIR /app

COPY package.json .

RUN npm ci

COPY . .

RUN npm run build

EXPOSE 3000

CMD ["npm", "start"]