-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.dockerignore | ||
Dockerfile | ||
docker-compose.yaml | ||
devcontainer.json | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
FROM mcr.microsoft.com/devcontainers/go:1.21-bookworm | ||
FROM golang:1.21.2-bookworm | ||
|
||
LABEL name="GoLang Dev Container" \ | ||
description="GoLang Dev Container" \ | ||
version="1.0.0" | ||
|
||
# Install tools | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
gnupg2 \ | ||
lsb-release \ | ||
sudo \ | ||
unzip \ | ||
wget \ | ||
zsh \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user. | ||
ARG USERNAME=vscode | ||
RUN useradd -m $USERNAME -s /bin/bash \ | ||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
&& chmod 0440 /etc/sudoers.d/$USERNAME \ | ||
&& chown -R $USERNAME:$USERNAME /tmp | ||
|
||
# Expose port 8080 | ||
EXPOSE ${PORT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.devcontainer | ||
.git | ||
.github | ||
.dockerignore | ||
.gitignore | ||
alpine.Dockerfile | ||
debian.Dockerfile | ||
LICENSE | ||
README.md | ||
title.png |