Skip to content

Commit

Permalink
Switch stack to container
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Staab committed Nov 7, 2019
1 parent 64287d0 commit 55766a9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Dockerfile
@@ -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
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

5 changes: 5 additions & 0 deletions heroku.yml
@@ -0,0 +1,5 @@
build:
docker:
web: Dockerfile
run:
web: ./build/main

0 comments on commit 55766a9

Please sign in to comment.