Skip to content

Commit

Permalink
Merge pull request #7 from ScilifelabDataCentre/DRH-136-revert-changes
Browse files Browse the repository at this point in the history
[DRH-136] Revert changes for remote access
  • Loading branch information
reutenauer authored Sep 20, 2023
2 parents b2e825e + 97af04c commit 9bdab32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update -qq && \
libreoffice libsqlite3-dev libssl-dev libxml++2.6-dev \
libxslt1-dev locales nginx nodejs openjdk-11-jdk-headless \
python3.9-dev python3.9-distutils python3-pip \
poppler-utils postgresql-client shared-mime-info sqlite3 links telnet vim-tiny zip sudo && \
poppler-utils postgresql-client shared-mime-info sqlite3 links telnet vim-tiny zip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8
Expand Down Expand Up @@ -76,14 +76,6 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \
# Cleanup and remove default nginx index page
RUN rm -rf /tmp/* /var/tmp/* /usr/share/nginx/html/index.html

# Adding a user directly
RUN addgroup seek-user
RUN echo 'seek-user:x:1000:1000:,,,:/home/seek-user:/bin/bash' >>/etc/passwd
RUN echo 'seek-user:$y$j9T$WvUczvUD4jaiAhEdlNpo/.$tfjvhSmdwNCfPWO4yjm.ORfqAZ3L0Tk0b6wHbtS7udC:19611:0:99999:7:::' >>/etc/shadow
RUN mkdir -p /home/seek-user && $(umask 077 && mkdir /home/seek-user/.ssh && chown seek-user:seek-user /home/seek-user/.ssh)
COPY docker/id_rsa.pub /home/seek-user/.ssh
RUN addgroup seek-user sudo

USER www-data

# Network
Expand Down
1 change: 0 additions & 1 deletion docker/id_rsa.pub

This file was deleted.

0 comments on commit 9bdab32

Please sign in to comment.