-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (34 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
40 lines (34 loc) · 1.01 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
# syntax=docker/dockerfile:1
# Runtime Stage
FROM ghcr.io/linuxserver/baseimage-selkies:arch
# set version label
ARG BUILD_DATE
ARG VERSION
ARG PYCHARM_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
ENV TITLE="PyCharm" \
NO_GAMEPAD="true"
RUN \
echo "**** add icon ****" && \
curl -o \
/usr/share/selkies/www/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/pycharm-logo.png && \
echo "**** install packages ****" && \
pacman -Sy --noconfirm \
caja \
"pycharm-community-edition${PYCHARM_VERSION:+=$PYCHARM_VERSION}" && \
echo "**** cleanup ****" && \
printf \
"Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" \
> /build_version && \
pacman -Scc --noconfirm && \
rm -rf \
/tmp/* \
/var/cache/pacman/pkg/* \
/var/lib/pacman/sync/*
# add local files and files from buildstage
COPY root/ /
# ports and volumes
VOLUME /config
EXPOSE 3001