Skip to content

Instantly share code, notes, and snippets.

View yeboah326's full-sized avatar
🤓
Geeking around

Gideon Yeboah Asante yeboah326

🤓
Geeking around
View GitHub Profile
@yeboah326
yeboah326 / Dockerfile
Created March 31, 2025 07:59
Dockerfile I used for some production react applications. Had some issues but it works fine and is quick plug and play solution.
# Use Node.js 18 as the base image
FROM node:18-alpine AS build
# Set working directory
WORKDIR /app
# Install Yarn
RUN apk add --no-cache yarn
# Copy package.json and yarn.lock
@yeboah326
yeboah326 / conftest.py
Created January 4, 2022 22:40
Configuration files for testing flask application
import pytest
from api import create_app, db
@pytest.fixture
def app():
flask_app = create_app()
flask_app.app_context().push()
yield flask_app