[Added] Basis for the project
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
FROM node:22-bookworm-slim
|
||||
|
||||
ARG WORKDIR
|
||||
WORKDIR ${WORKDIR}
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Angular CLI globally
|
||||
RUN npm install -g @angular/cli
|
||||
|
||||
# Switching user so it doesn't use root
|
||||
# If root adds files, it takes ownership, making them unremovable on the host except by using sudo
|
||||
# node tranfers ownership to the host user
|
||||
USER node
|
||||
|
||||
EXPOSE 4200
|
||||
|
||||
CMD ["tail","-f","/dev/null"]
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "Quiz Frontend",
|
||||
|
||||
"build": {
|
||||
"context": ".",
|
||||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
"WORKDIR": "/app"
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--name=quiz-frontend-dev-cont",
|
||||
"--net=host" // Allows it to be opened on the host network
|
||||
],
|
||||
"workspaceFolder": "/app",
|
||||
"mounts": [
|
||||
"source=.,target=/app,type=bind"
|
||||
],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {},
|
||||
"extensions": [
|
||||
"christian-kohler.npm-intellisense",
|
||||
"Angular.ng-template",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"Zignd.html-css-class-completion",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user