-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.jammy
More file actions
30 lines (24 loc) · 1 KB
/
Dockerfile.jammy
File metadata and controls
30 lines (24 loc) · 1 KB
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
FROM ubuntu:22.04
LABEL version="3.0"
LABEL description="BitCurator Docker based on Ubuntu 22.04 LTS"
LABEL maintainer="https://github.com/bitcurator/bitcurator-docker"
ARG BITCURATOR_CLI=v2.0.0
ARG BITCURATOR_VERSION=v4.5.0
ENV TERM=linux
RUN apt-get update && apt-get install nano wget curl gnupg sudo -y && \
curl -Lo /usr/local/bin/bitcurator https://github.com/bitcurator/bitcurator-cli/releases/download/${BITCURATOR_CLI}/bitcurator-cli-linux && \
chmod +x /usr/local/bin/bitcurator
RUN groupadd -r bcadmin && \
useradd -r -g bcadmin -d /home/bcadmin -s /bin/bash -c "BitCurator User" bcadmin && \
mkdir /home/bcadmin && \
chown -R bcadmin:bcadmin /home/bcadmin && \
usermod -a -G sudo bcadmin && \
echo 'bcadmin:bcadmin' | chpasswd
RUN DEBIAN_FRONTEND=noninteractive sudo bitcurator install --mode=addon --user=bcadmin --version=${BITCURATOR_VERSION}
RUN rm -rf /var/cache/salt/* && \
rm -rf /srv/* && \
rm -rf /root/.cache/*
WORKDIR /home/bcadmin
RUN mkdir /var/run/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]