Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Revert "Merge pull request #35 from appliedblockchain/fix/RB-30-fix-v…
Browse files Browse the repository at this point in the history
…ulnerabilities-vrf-docker-image"

This reverts commit fe8d620, reversing
changes made to 1ce9ac8.
  • Loading branch information
seromenho committed Aug 24, 2022
1 parent fe8d620 commit 59b567f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 5 additions & 7 deletions services/vrf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# node:16.16.0-alpine3.16
FROM node@sha256:1c8769a8c9ed57817ef07162744a3722421333a438185c560aa42a9a1fc6ea23 as builder
RUN apk add --no-cache python3 make g++
# node:16.16.0
FROM node@sha256:8cb8d1582f235b30eea033baddde78b17143348fb392154d4c67a3c08307a8f2 as builder
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN npm install &&\
Expand All @@ -9,10 +8,9 @@ RUN npm install &&\
rm -rf node_modules &&\
npm ci --only=production

# node:16.16.0-alpine3.16
FROM node@sha256:1c8769a8c9ed57817ef07162744a3722421333a438185c560aa42a9a1fc6ea23 as prod

RUN apk update && apk add dumb-init
# node:16.16.0
FROM node@sha256:8cb8d1582f235b30eea033baddde78b17143348fb392154d4c67a3c08307a8f2 as prod
RUN apt-get update -y && apt-get install -y dumb-init
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY --chown=node:node ./package*.json /usr/src/app/
Expand Down
5 changes: 2 additions & 3 deletions services/vrf/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# node:16.16.0-alpine3.16
FROM node@sha256:1c8769a8c9ed57817ef07162744a3722421333a438185c560aa42a9a1fc6ea23
# node:16.16.0
FROM node@sha256:8cb8d1582f235b30eea033baddde78b17143348fb392154d4c67a3c08307a8f2
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN apk add --no-cache python3 make g++
RUN npm i && npm run build:proto

CMD [ "npm", "run", "start:dev" ]

0 comments on commit 59b567f

Please sign in to comment.