mirror of
https://github.com/DominicBreuker/pspy.git
synced 2025-12-21 11:44:51 +00:00
16 lines
323 B
Docker
16 lines
323 B
Docker
FROM golang:1.9-stretch
|
|
|
|
RUN apt-get update && apt-get -y install cron sudo
|
|
COPY docker/etc/cron.d /etc/cron.d
|
|
COPY docker/scripts /scripts
|
|
|
|
RUN useradd -ms /bin/bash myuser && \
|
|
adduser myuser sudo && \
|
|
echo 'myuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
USER myuser
|
|
|
|
|
|
WORKDIR /go/src/github.com/dominicbreuker
|
|
|
|
|