-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 852 Bytes
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
# Base Dockerfile compatible with MelonRuntime v1.6.0+
# Will use .NET 6
# Change to a specific version if required
FROM mcr.microsoft.com/dotnet/aspnet:6.0
# Will use Node.js v18.x.x
# Change to a specific version if required
RUN apt-get update -yq && apt-get upgrade -yq && apt-get install -yq curl git nano
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -yq nodejs build-essential
RUN npm i npm --g
# Setup docker working directory
WORKDIR /docker
COPY . /docker
# Will install the latest version of MelonRuntime
# Change to a specific version if required
RUN npm i melon-runtime@1.6.0 --g
# Bundling and installing packages
RUN npm i
RUN npx babel --extensions .ts ./src/ --out-dir ./babel
RUN npx webpack ./babel/index.js
# Execution script that will be in package.json
ENTRYPOINT ["npm", "run", "go-docker"]