2023-01-10 19:22:13 -07:00
|
|
|
FROM ubuntu:jammy
|
|
|
|
# rlwrap segfaulted on :kinetic, so using jammy instead
|
|
|
|
LABEL maintainer="sjkillen@ualberta.ca"
|
|
|
|
|
2023-03-21 12:03:24 -06:00
|
|
|
RUN apt-get -qq update
|
|
|
|
RUN apt-get -qq install sudo gringo clasp time swi-prolog sbcl git
|
2023-03-21 12:10:50 -06:00
|
|
|
RUN apt-get -qq install rlfe
|
|
|
|
RUN echo "alias sbcl='rlfe sbcl'" >> /home/$USERNAME/.bashrc
|
2023-01-10 19:22:13 -07:00
|
|
|
|
|
|
|
ARG USERNAME=user
|
|
|
|
ARG USER_UID=1000
|
|
|
|
ARG USER_GID=$USER_UID
|
|
|
|
|
|
|
|
# Copied from https://code.visualstudio.com/docs/remote/containers-advanced#_adding-a-nonroot-user-to-your-dev-container
|
|
|
|
# Create the user
|
|
|
|
RUN groupadd --gid $USER_GID $USERNAME \
|
|
|
|
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME --shell /bin/bash \
|
|
|
|
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
|
|
|
|
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
|
|
|
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
|
|
|
|
|
|
|
USER $USERNAME
|
|
|
|
|