What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-19 07:10:02
react with docker with caprover
Dockerfile # build environment FROM node:9.6.1 as builder RUN mkdir /usr/src/app WORKDIR /usr/src/app ENV PATH /usr/src/app/node_modules/.bin:$PATH COPY . /usr/src/app RUN npm install RUN npm run build # production environment FROM nginx:1.13.9-alpine RU... Add solution -
Other 2022-01-30 15:20:16
go kafka docker postgres
// Dockerfile # ====================== # GO FIRST STAGE # ====================== FROM golang:latest as builder USER ${USER} WORKDIR /usr/src/app COPY go.mod go.sum ./ RUN go mod download COPY . ./ ENV GO111MODULE="on" \ GOARCH="amd64&qu... Add solution -
Other 2022-01-23 02:50:38
copy docker image from one machine to another
FROM golang:1.7.3 AS builder WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . FROM alpine:latest RUN apk --no-cache add ca-... Add solution -
Javascript 2021-11-11 15:26:08
angular 9 dockerfile
FROM node:12.16.2-stretch-slim AS build COPY . /app WORKDIR /app RUN npm install && npm run build:prod && rm -rf node_modules/ FROM nginx:1.17.9-alpine as runtime COPY --from=build /app/default.conf /etc/nginx/conf.d/ COPY --from=build /a... Add solution -
Javascript 2021-10-13 02:43:05
docker react
Dockerfile # build environment FROM node:9.6.1 as builder RUN mkdir /usr/src/app WORKDIR /usr/src/app ENV PATH /usr/src/app/node_modules/.bin:$PATH COPY . /usr/src/app RUN npm install RUN npm run build # production environment FROM nginx:1.13.9-alpine RU... Add solution -
Other 2021-09-23 05:25:02
docker copy from another image
FROM golang:1.7.3 AS builder WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . FROM alpine:latest RUN apk --no-cache add ca-... Add solution -
Shell/Bash 2021-09-03 03:55:03
cp: cannot stat 'default.conf': No such file or directory
FROM nginx:1.16.0-alpine COPY --from=builder /app/build /usr/share/nginx/html RUN rm /etc/nginx/conf.d/default.conf COPY nginx/nginx.conf /etc/nginx/conf.d EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] Add solution