-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 1006 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.13
LABEL maintainer="item4 <item4@localhost>"
LABEL org.opencontainers.image.title=YUI
LABEL org.opencontainers.image.source=https://github.com/item4/yui
LABEL org.opencontainers.image.description="Yui is a bot for Slack"
LABEL org.opencontainers.image.licenses=MIT
ENV HOME="/home/kazuto"
ENV TZ="Asia/Seoul"
ENV PATH="${HOME}/.local/bin:${PATH}"
RUN apt-get update -q \
&& apt-get install --no-install-recommends -y \
build-essential\
libffi-dev\
libxml2-dev\
libxslt-dev\
tzdata\
postgresql\
postgresql-contrib\
curl\
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip setuptools wheel
RUN groupadd --gid 1007 kirigaya && useradd --create-home --uid 1007 --gid 1007 kazuto && mkdir -p $HOME/yui/data && chown -R kazuto:kirigaya $HOME
USER kazuto
COPY --chown=kazuto:kirigaya ./requirements.txt ${HOME}/yui/
WORKDIR ${HOME}/yui/
RUN pip install -r requirements.txt && rm requirements.txt
COPY --chown=kazuto:kirigaya . ${HOME}/yui/