Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff28ccb

Browse files
committed
fix: remove builtin image for Docker template
1 parent e55e8ee commit ff28ccb

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

examples/templates/docker/build/Dockerfile

-18
This file was deleted.

examples/templates/docker/main.tf

+1-14
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,9 @@ resource "docker_volume" "home_volume" {
169169
}
170170
}
171171

172-
resource "docker_image" "main" {
173-
name = "coder-${data.coder_workspace.me.id}"
174-
build {
175-
context = "./build"
176-
build_args = {
177-
USER = local.username
178-
}
179-
}
180-
triggers = {
181-
dir_sha1 = sha1(join("", [for f in fileset(path.module, "build/*") : filesha1(f)]))
182-
}
183-
}
184-
185172
resource "docker_container" "workspace" {
186173
count = data.coder_workspace.me.start_count
187-
image = docker_image.main.name
174+
image = "codercom/enterprise-base:ubuntu"
188175
# Uses lower() to avoid Docker restriction on container names.
189176
name = "coder-${data.coder_workspace_owner.me.name}-${lower(data.coder_workspace.me.name)}"
190177
# Hostname makes the shell more user friendly: coder@my-workspace:~$

0 commit comments

Comments
 (0)