forked from sugarlabs/musicblocks-v4-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 756 Bytes
/
Dockerfile
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
FROM debian:buster-slim
# install node.js:14.x
RUN apt update --no-install-recommends -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash \
&& apt-get install nodejs -yq \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# update npm
RUN npm install -g npm
# install typescript compiler
RUN npm install -g typescript
# install ts-node (to run/debug .ts files without manual transpiling)
RUN npm install -g ts-node
LABEL org.opencontainers.image.description='An initial development image based on a slimmed Debian \
10.7 (buster), and further configured with Node.js v14, TypeScript compiler, and ts-node. This \
does not contain any source files.'
WORKDIR /app
EXPOSE 5000 9000