Skip to content

example: add docker-image-builds + docker docs #1526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix a versioning bug
  • Loading branch information
bpmct committed May 17, 2022
commit 6bacbc8da12ba2c3bbb553ad5c95d3fb8d9c7f06
4 changes: 2 additions & 2 deletions examples/docker-image-builds/images/java.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# From the base image (built on Docker host)
FROM coder-base:latest
FROM coder-base:v0.1

# Install everything as root
USER root
Expand Down Expand Up @@ -54,4 +54,4 @@ RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \
ENV PATH $PATH:$GRADLE_HOME/bin

# Set back to coder user
USER coder
USER coder
6 changes: 3 additions & 3 deletions examples/docker-image-builds/images/node.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Start from base image (built on Docker host)
FROM coder-base:latest
FROM coder-base:v0.1

# Install everything as root
USER root

# Install Node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
apt-get install -y nodejs

Expand All @@ -15,4 +15,4 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y yarn

# Set back to coder user
USER coder
USER coder