forked from sugarlabs/musicblocks-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 851 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
# base from official Node (Alpine LTS) image
FROM node:lts-alpine
# install simple http server for serving static content
RUN npm install -g http-server
# 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
# set /app as working directory (in development mode for mounting source code)
WORKDIR /app
# override default CMD for image ("node"): launch the shell
CMD sh
# Listen on ports
EXPOSE 5173 4173
# Add label for GitHub container registry
LABEL org.opencontainers.image.description='An initial development image based on the official \
Node.js (on Alpine LTS) image, and further configured with a HTTP server, TypeScript compiler, \
and ts-node. This is merely to provide an execution sandbox and does not contain source files.'