Skip to content

Commit

Permalink
chore: missing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed May 26, 2023
1 parent ab631e9 commit d1edad1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
23 changes: 6 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,22 @@ ENV NCONF_NAMESPACE=MS_SOCIAL \

WORKDIR /src

COPY --chown=node:node package.json pnpm-lock.yaml ./
RUN \
apk --update upgrade \
&& apk add git ca-certificates openssl g++ make python3 linux-headers \
&& chown node:node /src \
&& su -l node -c "cd /src && pnpm install --prod --frozen-lockfile" \
&& apk del \
g++ \
make \
git \
curl \
&& apk add openssl ca-certificates \
&& apk add ca-certificates openssl --virtual .buildDeps wget git g++ make python3 linux-headers \
&& update-ca-certificates \
&& apk del \
.buildDeps \
wget \
python3 \
linux-headers \
&& chown node:node /src \
&& su -l node -c "cd /src && pnpm install --prod --frozen-lockfile" \
&& apk del .buildDeps \
&& rm -rf \
/tmp/* \
/root/.node-gyp \
/root/.npm \
/etc/apk/cache/* \
/var/cache/apk/*

COPY --chown=node:node package.json pnpm-lock.yaml ./
USER node
RUN pnpm i --production --frozen-lockfile
COPY --chown=node:node . /src
COPY --chown=node:node ./bin ./src ./schemas /src/

EXPOSE 3000
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@
"lodash": "^4.17.21",
"moment": "^2.29.4",
"ms-conf": "^8.1.2",
"p-limit": "^3.1.0",
"pg": "^8.11.0",
"pino": "^8.14.1",
"prom-client": "^14.2.0",
"request": "^2.88.2",
"request-promise": "^4.2.6",
"retry": "^0.13.1",
"twitter": "^1.7.1",
"uuid": "^9.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down
8 changes: 6 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1edad1

Please sign in to comment.