mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 11:17:17 +02:00
General optimations and refactorings in preparation for simpleicon role implementation
This commit is contained in:
16
roles/docker-simpleicons/files/Dockerfile
Normal file
16
roles/docker-simpleicons/files/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM node:latest
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY server.js .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "server.js"]
|
0
roles/docker-simpleicons/files/env
Normal file
0
roles/docker-simpleicons/files/env
Normal file
9
roles/docker-simpleicons/files/package.json
Normal file
9
roles/docker-simpleicons/files/package.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "simpleicons-server",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"express": "^4.18.2",
|
||||
"simple-icons": "^9.0.0",
|
||||
"sharp": "^0.32.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user