mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
Merge ac35d8854f
into b2f4582196
This commit is contained in:
commit
a3f4bf9f24
1 changed files with 12 additions and 3 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,13 +1,22 @@
|
|||
FROM node:lts-alpine
|
||||
|
||||
WORKDIR /home/node/app
|
||||
# Prepare Nodejs Project
|
||||
FROM node:18 AS builder
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
WORKDIR /home/node/app
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
# Copy build and put it in distroless Image
|
||||
|
||||
FROM gcr.io/distroless/nodejs:18
|
||||
|
||||
COPY --from=builder /home/node/app /home/node/app
|
||||
|
||||
WORKDIR /home/node/app
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue