mirror of
https://github.com/rjNemo/docker_examples
synced 2026-06-06 02:26:45 +00:00
up versions
This commit is contained in:
parent
de3304cca0
commit
17aab8826b
3 changed files with 10 additions and 4 deletions
|
|
@ -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 .
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
FROM node:lts-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json .
|
||||
COPY yarn.lock .
|
||||
|
||||
RUN yarn install
|
||||
|
||||
COPY . .
|
||||
CMD node index.js
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue