-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from lokalise/feature/MRP_712_update_node_version
MRP-712 Update node version
- Loading branch information
Showing
4 changed files
with
32 additions
and
7 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,9 +1,33 @@ | ||
FROM node:18.15.0-alpine3.17 | ||
FROM node:18.17.1-bookworm-slim | ||
|
||
RUN apk update && apk add git openssh | ||
RUN set -ex;\ | ||
apt-get update -y; \ | ||
apt-get install -y --no-install-recommends libssl3; \ | ||
rm -rf /var/lib/apt/lists/*; | ||
|
||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN mkdir -p /home/node/app | ||
RUN chown -R node:node /home/node && chmod -R 770 /home/node | ||
WORKDIR /home/node/app | ||
|
||
RUN set -ex; \ | ||
apt-get update -y ; \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
dumb-init \ | ||
make \ | ||
gcc \ | ||
g++ \ | ||
python3 \ | ||
git \ | ||
openssl | ||
COPY --chown=node:node ./package.json ./package.json | ||
COPY --chown=node:node ./package-lock.json ./package-lock.json | ||
|
||
USER node | ||
RUN set -ex; \ | ||
npm ci --ignore-scripts ; | ||
|
||
COPY . . | ||
|
||
RUN npm ci | ||
CMD npm run start:dev |
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,3 +1,3 @@ | ||
.PHONY: sync-modules | ||
sync-modules: | ||
docker compose cp app:/app/node_modules . | ||
docker compose cp app:/home/node/app/node_modules . |
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