[PR #75] [CLOSED] Added Dockerfile for docker fans #512

Closed
opened 2026-02-27 23:17:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/snail007/goproxy/pull/75
Author: @FarhadF
Created: 5/14/2018
Status: Closed

Base: masterHead: master


📝 Commits (1)

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

Dockerfile (+9 -0)

📄 Description

Fixes #50
This pull request adds a Dockerfile to root of project. Dockerfile uses multistage build and alpine project to comply with best practices. Uses golang 1.8.5 for building as noted in the project README.md and will be pretty small image. total extracted size will be 17.3MB for goproxy version 4.7.

The default build process builds the master branch (latest commits/ cutting edge), and it can be configured to build specific version, just edit Dockerfile before build, following builds release version 4.7:

ARG GOPROXY_VERSION=v4.7

To Run:

  1. Clone the repository and cd into it.
sudo docker build .
  1. Tag the image:
sudo docker tag <id from previous step>  goproxy/goproxy:latest
  1. Run!
    Just put your arguments to proxy binary in the OPTS environmental variable (this is just a sample http proxy):
sudo docker run -d --restart=always --name goproxy -e OPTS="http -p :33080" -p 33080:33080 goproxy/goproxy:latest
  1. View logs:
sudo docker logs -f goproxy

You can even create a dockerhub account an push each release image to, so users can use docker pull to access the desired version immediately.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/snail007/goproxy/pull/75 **Author:** [@FarhadF](https://github.com/FarhadF) **Created:** 5/14/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`8551186`](https://github.com/snail007/goproxy/commit/8551186dd690d9d652c3ecf77576a8d8882b4a68) Added Dockerfile ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `Dockerfile` (+9 -0) </details> ### 📄 Description Fixes #50 This pull request adds a Dockerfile to root of project. Dockerfile uses multistage build and alpine project to comply with best practices. Uses golang 1.8.5 for building as noted in the project README.md and will be pretty small image. total extracted size will be 17.3MB for goproxy version 4.7. The default build process builds the master branch (latest commits/ cutting edge), and it can be configured to build specific version, just edit Dockerfile before build, following builds release version 4.7: ``` ARG GOPROXY_VERSION=v4.7 ``` To Run: 1. Clone the repository and cd into it. ``` sudo docker build . ``` 2. Tag the image: ``` sudo docker tag <id from previous step> goproxy/goproxy:latest ``` 3. Run! Just put your arguments to proxy binary in the OPTS environmental variable (this is just a sample http proxy): ``` sudo docker run -d --restart=always --name goproxy -e OPTS="http -p :33080" -p 33080:33080 goproxy/goproxy:latest ``` 4. View logs: ``` sudo docker logs -f goproxy ``` You can even create a dockerhub account an push each release image to, so users can use docker pull to access the desired version immediately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:17:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#512
No description provided.