-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 1014 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 1014 Bytes
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
31
32
33
34
35
FROM ghcr.io/luzifer-docker/archlinux:latest@sha256:e43125b48e497fa682d858ae5014cbc0e4ce1f3eeced40916ccaf2f797c6ed92 AS builder
ENV GOPATH=/go \
CGO_ENABLED=0
RUN set -ex \
&& pacman -Sy --noconfirm \
go \
&& go install github.com/boxboat/fixuid@v0.6.0
FROM ghcr.io/luzifer-docker/archlinux:latest@sha256:e43125b48e497fa682d858ae5014cbc0e4ce1f3eeced40916ccaf2f797c6ed92
ARG CODE_SERVER_VERSION=4.112.0
ARG DUMB_INIT_VERSION=1.2.5
COPY --from=builder /go/bin/fixuid /usr/local/bin/fixuid
COPY build.sh /usr/local/bin/build.sh
RUN set -ex \
&& bash /usr/local/bin/build.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
EXPOSE 8080
# This way, if someone sets $DOCKER_USER, docker-exec will still work as
# the uid will remain the same. note: only relevant if -u isn't passed to
# docker-run.
USER 1000
ENV USER=coder
WORKDIR /home/coder
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["--auth", "none", "--bind-addr", "0.0.0.0:8080", "--session-socket", "/tmp/code-server-ipc.sock", "."]