Skip to content

Instantly share code, notes, and snippets.

@DeepInThought
Forked from syntaqx/Dockerfile
Created May 30, 2019 09:48
Show Gist options
  • Save DeepInThought/8c84cfab912c2164dc734a6b1f8c97cd to your computer and use it in GitHub Desktop.
Save DeepInThought/8c84cfab912c2164dc734a6b1f8c97cd to your computer and use it in GitHub Desktop.
docker-compose volume binding
version: '3.6'
services:
example:
build:
context: .
dockerfile: Dockerfile
volumes:
- /c/Users/syntaqx/go/src/github.com/syntaqx/example:/go/src/github.com/syntaqx/example
ARG GO_VERSION=1.11
ARG ALPINE_VERSION=3.8
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
WORKDIR /go/src/github.com/syntaqx/example
RUN ls -alh
ENTRYPOINT ["go"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment