当我尝试使用 docker 启动 go 应用程序时遇到一些麻烦。
ERROR: for app Cannot start service app: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./main\": permission denied": unknown
当我尝试做时就会发生docker-compose up
这是我的 mulristage Dockerfil:
# Dockerfile References: https://docs.docker.com/engine/reference/builder/
# Start from the latest golang base image
FROM golang:1.13 as builder
# Set the Current Working Directory inside the container
WORKDIR /memesbot
# Copy go mod and sum files
COPY go.mod go.sum ./
# Download all dependencies. Dependencies will be cached if the …Run Code Online (Sandbox Code Playgroud)