Skip to content

Commit

Permalink
Update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthlogic committed Feb 4, 2024
1 parent 50a6a60 commit af899da
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2,197 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
# Use the official Node.js image as base
FROM node:18-alpine
FROM node:18-alpine AS base

# Set metadata labels
LABEL maintainer="Srikanth <[email protected]>" \
version="1.5.0" \
description="Docker image for running Google Play API"

# Create and set the working directory
WORKDIR /home/node/app
WORKDIR /app

FROM base as build

# Copy only the package.json and package-lock.json first to leverage Docker caching
COPY package*.json ./
COPY --link package-lock.json package.json ./

RUN npm install -g [email protected]

# Install dependencies
RUN npm ci --quiet --omit=dev && npm cache clean --force
RUN npm install

# Copy the rest of the application code
COPY . .
COPY --link . .

RUN npm run generateoas

RUN npm prune

FROM base
# Copy the rest of the application code
COPY --from=build /app /app

# Expose port 3000
EXPOSE 3000

Expand Down
2,186 changes: 0 additions & 2,186 deletions PostmanCollections/GooglePlayAPI.postman_collection.json.json

This file was deleted.

4 changes: 2 additions & 2 deletions fly.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ primary_region = "sin"

[http_service.concurrency]
type = "requests"
soft_limit = 400
hard_limit = 500
soft_limit = 800
hard_limit = 1000

[env]
COUNTRY_OF_QUERY = "IN"
Expand Down
4 changes: 2 additions & 2 deletions fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ primary_region = "sin"

[http_service.concurrency]
type = "requests"
soft_limit = 400
hard_limit = 500
soft_limit = 800
hard_limit = 1000

[env]
COUNTRY_OF_QUERY = "IN"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"eslint-plugin-standard": "^5.0.0",
"newman": "^6.1.0",
"newman-reporter-htmlextra": "^1.23.0",
"npm-check-updates": "^16.14.12"
"npm-check-updates": "^16.14.14"
}
}

0 comments on commit af899da

Please sign in to comment.