Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Staab
committed
Nov 7, 2019
1 parent
64287d0
commit 55766a9
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copied from https://github.com/sleepyfox/janet-lang-docker/blob/master/Dockerfile | ||
|
||
FROM ubuntu:19.10 | ||
|
||
# Install make | ||
RUN apt -q update && apt install -yq make gcc git curl | ||
|
||
# Install Janet | ||
RUN cd /tmp && \ | ||
git clone https://github.com/janet-lang/janet.git && \ | ||
cd janet && \ | ||
make all test install && \ | ||
rm -rf /tmp/janet | ||
RUN chmod 777 /usr/local/lib/janet | ||
|
||
# Set group and user IDs for docker user | ||
ARG GID=1000 | ||
ARG UID=1000 | ||
ARG USER=me | ||
|
||
# Create the group and user | ||
RUN groupadd -g $GID $USER | ||
RUN useradd -g $GID -M -u $UID -d /var/app $USER | ||
|
||
# Application setup | ||
WORKDIR /var/app | ||
RUN chmod 777 /var/app | ||
USER $USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build: | ||
docker: | ||
web: Dockerfile | ||
run: | ||
web: ./build/main |