C
Coder.com2mo ago
slddl

Template for ubuntu 20.04

FROM ubuntu:focal

RUN apt-get update \
&& apt-get install -y \
curl \
git \
golang \
sudo \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
FROM ubuntu:focal

RUN apt-get update \
&& apt-get install -y \
curl \
git \
golang \
sudo \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*

ARG USER=coder
RUN useradd --groups sudo --no-create-home --shell /bin/bash ${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \
&& chmod 0440 /etc/sudoers.d/${USER}
USER ${USER}
WORKDIR /home/${USER}
I basically only changed this from the template
11 Replies
Codercord
Codercord2mo ago
<#1346961977255268422>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
slddl
slddlOP2mo ago
No description
Phorcys
Phorcys2mo ago
yeah this is normal, it takes a while to build the image how long have you waited for?
slddl
slddlOP2mo ago
It never took that long im at 7mins rn Building portainer from scratch was faster than this lol
slddl
slddlOP2mo ago
No description
slddl
slddlOP2mo ago
Error: Unable to read Docker image into resource: unable to list Docker images: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.41/images/json": context deadline exceeded
Phorcys
Phorcys2mo ago
yeah no this is too much lol I think it's due to some command hanging try adding -y to apt-get update maybe?
slddl
slddlOP2mo ago
No description
slddl
slddlOP2mo ago
Nope... :DEAD: Build it on my pc its asking for geographical => => # questions will narrow this down by presenting a list of cities, representing => => # the time zones in which they are located. => => # 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc
=> => # 2. America 5. Arctic 8. Europe 11. SystemV 14. Legacy => => # 3. Antarctica 6. Asia 9. Indian 12. US => => # Geographic area: imma try with ARG DEBIAN_FRONTEND=noninteractive It worked!
Phorcys
Phorcys2mo ago
nice!
Codercord
Codercord2mo ago
@Phorcys closed the thread.

Did you find this page helpful?