Skip to content

Instantly share code, notes, and snippets.

View rahulgayen's full-sized avatar

Rahul Gayen rahulgayen

View GitHub Profile
@rahulgayen
rahulgayen / main.tf
Created October 14, 2024 05:24
Docker Terraform
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = ">= 3.0.0"
}
}
required_version = "~> 1.5"
}
@rahulgayen
rahulgayen / java-python.dockerfile
Created August 28, 2023 08:47
Dockerfile for java and python environment
# Start from the official Ubuntu image
FROM ubuntu:18.04 AS openjdk-builder
# Install system dependencies
RUN apt-get update && apt-get install -y \
openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*
# Base image for Python 3.9 with OpenJDK 8
FROM python:3.9
@rahulgayen
rahulgayen / underline.html
Created May 14, 2023 15:05
Underline text html css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style-4.css" />
<title>Document</title>
<style>
:root {
@rahulgayen
rahulgayen / Dockerfile
Created March 29, 2023 13:32 — forked from micalevisk/Dockerfile
Production Dockerfile example for NestJS projects.
## ===========================================================> The common stage
FROM node:16.14 AS base
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
## Remove unnecessary files from `node_modules` directory