Skip to content

Instantly share code, notes, and snippets.

View gjerokrsteski's full-sized avatar
🎯
Focusing

Gjero Krsteski gjerokrsteski

🎯
Focusing
View GitHub Profile
@gjerokrsteski
gjerokrsteski / remove the idea folder from git
Last active October 4, 2021 12:31
remove the .idea folder from git
echo .idea >> .gitignore
git rm -r --cached .idea
git add .gitignore
git add -u .idea/
git commit -m "remove the .idea folder"
@gjerokrsteski
gjerokrsteski / remove env file from git forever
Last active May 3, 2024 19:42
remove env file from git history forever
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@gjerokrsteski
gjerokrsteski / Dockerfile with multi-stage build for production
Last active December 13, 2023 01:21
Dockerfile with multi-stage build for dev and production
FROM node:12-alpine as base
WORKDIR /src
COPY package.json package-lock.json /src/
COPY . /src
EXPOSE 8080
FROM base as production
ENV NODE_ENV=production