소스 검색

Dockerfile for any architecture.

master
Mikhail Chernov 8 년 전
부모
커밋
a15ca951fa
1개의 변경된 파일7개의 추가작업 그리고 12개의 파일을 삭제
  1. 7
    12
      Dockerfile

+ 7
- 12
Dockerfile 파일 보기

@@ -1,17 +1,12 @@
# Use an official Python runtime as a parent image
FROM frolvlad/alpine-python3:latest
FROM python:3

# Set the working directory to /app
WORKDIR /app
WORKDIR /usr/src/app

# Copy the current directory contents into the container at /app
ADD . /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Install any needed packages specified in requirements.txt
RUN pip3 install -r requirements.txt
ENV NAME magic-judge-candidate-telegram-bot

# Define environment variable
ENV NAME magic-judge-telegram-bot
COPY . .

# Run app.py when the container launches
CMD ["python3", "magic-judge-telegram-bot.py"]
CMD ["python", "magic-judge-telegram-bot.py"]

Loading…
취소
저장