forked from facundoolano/google-play-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docker file * Update workflow * Handle 404 better * Status code on logs
- Loading branch information
1 parent
25267ea
commit 475f0a5
Showing
8 changed files
with
32 additions
and
2,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
2,186 changes: 0 additions & 2,186 deletions
2,186
PostmanCollections/GooglePlayAPI.postman_collection.json.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters