diff --git a/go/Dockerfile b/go/Dockerfile index 3afd14f..9ecd1ff 100644 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -1,9 +1,10 @@ -FROM golang:1.16-alpine AS build +FROM golang:1.17-alpine AS build WORKDIR /app -COPY go.mod . -COPY go.sum . + +COPY go.* . RUN go mod download + COPY . . RUN go build -o ./out/dist . diff --git a/node/Dockerfile b/node/Dockerfile index 36a8eb6..0ff3721 100644 --- a/node/Dockerfile +++ b/node/Dockerfile @@ -1,8 +1,11 @@ FROM node:lts-alpine WORKDIR /app + COPY package.json . COPY yarn.lock . + RUN yarn install + COPY . . CMD node index.js diff --git a/python/Dockerfile b/python/Dockerfile index 9758afc..d39083a 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -1,10 +1,12 @@ -FROM python:3.9-slim +FROM python:3.10-slim ENV PYTHONUNBUFFERED 1 WORKDIR /app + COPY Pipfile* . RUN pip install pipenv RUN pipenv install --system --deploy --ignore-pipfile + COPY . . CMD uvicorn main:app --host 0.0.0.0 --port 80 \ No newline at end of file