-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
65 lines (40 loc) · 1.4 KB
/
Dockerfile.dev
File metadata and controls
65 lines (40 loc) · 1.4 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM python:3-alpine3.7
USER root
WORKDIR /app
ENV PUID ${PUID:-1100}
ENV PGID ${PGID:-1101}
RUN addgroup -S -g ${PGID} plexsync
RUN adduser -S -G plexsync -u ${PUID} plexsync
RUN chown -R plexsync:plexsync /app && chmod -R 770 /app
RUN mkdir /downloads # && chown -R plexsync:plexsync /downloads && chmod -R 770 /downloads
RUN mkdir /logs # && chown -R plexsync:plexsync /logs && chmod -R 770 /logs
RUN mkdir /config # && chown -R plexsync:plexsync /config && chmod -R 777 /config
CMD ["/entrypoint.sh"]
# Expose the Flask port
EXPOSE 5000
VOLUME /config
VOLUME /logs
VOLUME /downloads
WORKDIR /app
COPY entrypoint.sh /
COPY config/config.ini /config
RUN apk update && apk add nodejs python3 git
RUN npm install -g browserify
RUN pip3 install --upgrade pip
COPY requirements.txt.dev .
RUN pip3 install -r requirements.txt.dev
COPY package.json /app
##RUN chmod g+s .
#USER plexsync
COPY package.json .
RUN npm install
COPY app.py .
COPY /static ./static
#TODO: Symlinking should work here but doesn't, figure out why
RUN cp node_modules/octicons/build/svg/* ./static/images
RUN chown -R plexsync:plexsync /downloads && chmod -R 777 /downloads
COPY /templates ./templates
RUN browserify -d ./static/scripts/main.js --debug -p [ parcelify -o ./static/css/bundle.css ] > ./static/scripts/bundle.js
RUN chown -R plexsync:plexsync /app
COPY /plexsync/ ./plexsync
RUN pip3 install -e ./plexsync