This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:20.15.3-alpine AS base | |
RUN mkdir -p /opt/app | |
WORKDIR /opt/app | |
RUN adduser -S user | |
RUN chown -R user /opt/app | |
COPY package*.json ./ | |
FROM base AS development | |
RUN npm install | |
COPY . ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stops and deletes ALL Docker resources | |
docker image prune | |
docker rmi $(docker images -a -q) | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker system prune -f | |
docker system prune -a | |
docker volume prune -f |
OlderNewer