-
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.
- Loading branch information
0 parents
commit 3d52071
Showing
3 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:20.12.2-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y locales git procps | ||
RUN locale-gen ja_JP.UTF-8 | ||
RUN localedef -f UTF-8 -i ja_JP ja_JP | ||
ENV LANG=ja_JP.UTF-8 | ||
ENV TZ=Asia/Tokyo | ||
WORKDIR /nodejs-study |
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,7 @@ | ||
'use strict'; | ||
const number = process.argv[2] || 0; | ||
let sum = 0; | ||
for (let i = 1; i <= number; i++) { | ||
sum = sum + i; | ||
} | ||
console.log(sum); |
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,6 @@ | ||
services: | ||
app: | ||
build: . | ||
tty: true | ||
volumes: | ||
- .:/nodejs-study |