Skip to content

Commit 35bf93a

Browse files
committed
chore: Rename workspace to project directory in Go Dockerfile
1 parent c60b9b8 commit 35bf93a

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

Language/go/1.22.5/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335
22

3-
COPY /Language/go/workspace /home/sealos/workspace
3+
COPY /Language/go/project /home/sealos/project
44

55
RUN curl -O https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz && \
66
tar -xvf go1.22.5.linux-amd64.tar.gz && \
@@ -12,8 +12,8 @@ RUN curl -O https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz && \
1212
echo 'export GOPATH=/go' >> /root/.bashrc && \
1313
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \
1414
chmod -R 777 /go && \
15-
chown -R sealos:sealos /home/sealos/workspace && \
16-
chmod -R u+rw /home/sealos/workspace
15+
chown -R sealos:sealos /home/sealos/project && \
16+
chmod -R u+rw /home/sealos/project
1717

1818
ENV GOPATH=/go
1919
ENV PATH=$PATH:/usr/local/go/bin:/go/bin

Language/go/1.23.0/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335
22

3-
COPY /Language/go/workspace /home/sealos/workspace
3+
COPY /Language/go/project /home/sealos/project
44

55
RUN curl -O https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz && \
66
tar -xvf go1.23.0.linux-amd64.tar.gz && \
@@ -12,8 +12,8 @@ RUN curl -O https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz && \
1212
echo 'export GOPATH=/go' >> /root/.bashrc && \
1313
echo 'export PATH=$PATH:/usr/local/go/bin:/go/bin' >> /root/.bashrc && \
1414
chmod -R 777 /go && \
15-
chown -R sealos:sealos /home/sealos/workspace && \
16-
chmod -R u+rw /home/sealos/workspace
15+
chown -R sealos:sealos /home/sealos/project && \
16+
chmod -R u+rw /home/sealos/project
1717

1818
ENV GOPATH=/go
1919
ENV PATH=$PATH:/usr/local/go/bin:/go/bin

Language/go/project/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
)
6+
7+
func main() {
8+
fmt.Println("Hello World!")
9+
}

Language/go/workspace/main.go

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)