Skip to content

Commit

Permalink
Merge pull request titaniumnetwork-dev#15 from np22-jpg/main
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
e9x authored Dec 11, 2022
2 parents 1225502 + 3e33125 commit 3b88a38
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
FROM node:current-slim
# build app
FROM docker.io/node AS builder

RUN apt update
RUN apt install git

COPY . /app
WORKDIR /app

COPY ./package.json ./package-lock.json ./src/ ./
RUN npm install

# build final
FROM gcr.io/distroless/nodejs:16

EXPOSE 8080/tcp

RUN npm install --omit=dev
COPY --from=builder /app /

ENTRYPOINT npm start
CMD ["src/index.js"]

0 comments on commit 3b88a38

Please sign in to comment.