-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 1.09 KB
/
Copy pathDockerfile
File metadata and controls
32 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:20.12.2
#FROM nikolaik/python-nodejs:latest
# Last version check on 10 Apr 2024.
# Check for new versions at https://nodejs.org/en/ or at https://hub.docker.com/_/node
# Note that if you want to use this container for a Create React Application (CRA)
# you may need to use a different version. Consult React documentation.
# [Manfred]
################################################################################
# Upgrade NPM
# node may come with an older version of npm. Ensure we have a specific npm.
RUN npm install -g npm@10.9.1
# Last version check on 10 Apr 2024.
# Newer versions might be available at https://www.npmjs.com/search?q=npm
# [Manfred]
################################################################################
# Install prerequisites
RUN apt-get update
RUN apt-get install -y \
lsb-release \
curl
################################################################################
# Install TypeScript
RUN npm install -g typescript@5.4.5
# Last version check on 10 Apr 2024.
# Newer versions might be available at https://www.npmjs.com/search?q=typescript
# [Manfred]