Skip to content

Instantly share code, notes, and snippets.

View aissam-en's full-sized avatar

Aissam EN-NAHEL aissam-en

View GitHub Profile
@dvsingh9
dvsingh9 / spring.boot.90mb.Dockerfile
Created May 3, 2020 17:35
Spring boot ultra slim (less than 90 mb) docker build script
# (1) use Alpine Linux for build stage
FROM alpine:3.11.3 as build
# (2) install build dependencies
RUN apk --no-cache add openjdk11
RUN apk --no-cache add maven
# build JDK with less modules
RUN /usr/lib/jvm/default-jvm/bin/jlink \
--compress=2 \
--module-path /usr/lib/jvm/default-jvm/jmods \
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active February 27, 2025 08:26
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user