-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aa69b5
commit 087ff53
Showing
4 changed files
with
64 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Use Node.js base image | ||
FROM node:20 AS fetch-locales | ||
|
||
# Set working directory | ||
WORKDIR /fetcher | ||
|
||
# Copy package.json and package-lock.json | ||
COPY package.json package-lock.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy fetch-locales script | ||
COPY fetch-locales.js . | ||
|
||
# Set command to run the fetch-locales script | ||
CMD ["node", "fetch-locales.js"] |
13 changes: 4 additions & 9 deletions
13
micro-frontends/sample/fetch-locales.js → ...nds/sample/fetch-locales/fetch-locales.js
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "fetch-locales", | ||
"version": "1.0.0", | ||
"description": "A script to fetch locales from an API and store them", | ||
"main": "fetch-locales.js", | ||
"type": "module", | ||
"scripts": { | ||
"start": "node fetch-locales.js" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.27.2" | ||
}, | ||
"engines": { | ||
"node": ">=20" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |