-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.studio
38 lines (30 loc) · 1.32 KB
/
Dockerfile.studio
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
38
# Build a docker image for this repository
# 1. make sure docker is installed
# 2. make sure you have a clean copy of this repository
# 3. go to the directory where this file exists (the root of your repo)
# 4. $ docker build -t webgme-org --build-arg webgme_repo=webgme@latest .
# 5. export image: $ docker save -o webgme-org.tar webgme-org
# After successful startup, you should be able to connect to your dockerized webgme on the 8888 port of the host.
#
# Useful commands
# checking the status of your docker containers: docker ps -a
# restart your docker container: docker restart webgme-seaml
# stop your container: docker stop webgme-seaml
# removing your container: docker rm webgme-seaml
# removing your image: docker rmi webgme-seaml
# list available images: docker images
# exporting the image: docker save -o webgme-seaml.tar webgme-seaml
# import an image: docker load -i webgme-seaml.tar
# Node 10
FROM node:dubnium
# Install git
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y default-jre
RUN mkdir /usr/app
WORKDIR /usr/app
# copy app source
ADD . /usr/app/
# Install node-modules
RUN npm install
CMD ["npm", "start"]