Skip to content

Commit

Permalink
feat: sdk release 3.18.0.beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
opanasiuk-oleksii committed Sep 9, 2024
1 parent 920d65f commit 1ac9832
Show file tree
Hide file tree
Showing 4 changed files with 319 additions and 221 deletions.
19 changes: 12 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ ARG SDK_VERSION=latest

# Install python and build-base for node-gyp
RUN apk update
RUN apk add --no-cache python3 make g++ bash
RUN apk add openssl=3.3.1-r3
RUN apk upgrade --available --no-cache && sync
RUN apk add --no-cache python3 make g++ bash openssl
# Install pnpm globally
RUN npm install -g pnpm

WORKDIR /app
ENV NODE_ENV production
COPY rest-api/package.json ./
COPY pnpm-workspace.yaml ./
COPY rest-api/package.json ./rest-api/
WORKDIR /app/rest-api
# If the SDK_VERSION build argument is provided, update the package.json
# Otherwise, keep the default value
RUN if [ "${SDK_VERSION}" != "latest" ]; then \
Expand All @@ -31,13 +33,16 @@ RUN pnpm install --prod

FROM node:22.4.0-alpine
RUN apk update
RUN apk add openssl=3.3.1-r3
RUN apk upgrade --available --no-cache && sync
RUN apk add openssl
WORKDIR /app
ENV NODE_ENV production
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/public ./public
COPY --from=build /app/package.json ./
COPY --from=build /app/rest-api/node_modules ./rest-api/node_modules
COPY --from=build /app/rest-api/dist ./rest-api/dist
COPY --from=build /app/rest-api/public ./rest-api/public
COPY --from=build /app/rest-api/package.json ./rest-api/
WORKDIR /app/rest-api

CMD ["node", "dist/main"]

161 changes: 108 additions & 53 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion rest-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rest-api",
"version": "3.18.0.beta3",
"version": "3.18.0-beta.6",
"description": "",
"scripts": {
"build": "tsoa spec && nest build",
Expand Down
Loading

0 comments on commit 1ac9832

Please sign in to comment.