mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
General optimations
This commit is contained in:
16
roles/web-svc-simpleicons/templates/Dockerfile.j2
Normal file
16
roles/web-svc-simpleicons/templates/Dockerfile.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM node:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./config/package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM node:latest
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY ./config/server.js .
|
||||
|
||||
EXPOSE {{ container_port }}
|
||||
|
||||
CMD ["node", "server.js"]
|
Reference in New Issue
Block a user