-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·37 lines (28 loc) · 1.13 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
# syntax=docker/dockerfile:1
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/engine/reference/builder/
FROM ubuntu:18.04 as development
# Set the working directory in the container
# Set timezone
ENV TZ=US/Eastern
# Prepare the tzdata install
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /usr/app
# Update the system and install necessary packages
# This command updates the package lists for the APT (Advanced Package Tool) package manager.
# It fetches the latest information about available packages from the configured repositories.
RUN apt-get update && \
apt-get upgrade -y
# Install applications
RUN apt-get install -y git && \
apt-get install -y nodejs && \
apt-get install -y npm && \
apt-get install -y jupyter
# Get iJavaScript Kernal
RUN npm install -g --unsafe-perm ijavascript && \
# Add iJS Kernal for Jupyter
ijsinstall --install=global && \
npm install
# launch jupyter notebook
CMD jupyter notebook --port=8888 --ip=0.0.0.0 --allow-root