mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐳 💚 Fix develop image
This commit is contained in:
parent
d9355c3db4
commit
3a05d58753
1 changed files with 13 additions and 10 deletions
|
@ -40,28 +40,28 @@ RUN set -ex; \
|
||||||
cd .. && \
|
cd .. && \
|
||||||
rm -rf ./imagemagick
|
rm -rf ./imagemagick
|
||||||
|
|
||||||
WORKDIR /home/uxbox
|
|
||||||
|
|
||||||
ENV NODE_VERSION=8.15.0
|
ENV NODE_VERSION=8.15.0
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
ENV LC_ALL C.UTF-8
|
ENV LC_ALL C.UTF-8
|
||||||
ENV API_URL https://demo.uxbox.io/api
|
ENV API_URL https://demo.uxbox.io/api
|
||||||
|
|
||||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list
|
RUN set -ex; \
|
||||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list; \
|
||||||
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -; \
|
||||||
RUN apt-get update -yq && \
|
apt-get update -yq && \
|
||||||
apt-get install -yq \
|
apt-get install -yq \
|
||||||
postgresql-9.6 \
|
postgresql-9.6 \
|
||||||
postgresql-contrib-9.6
|
postgresql-contrib-9.6 \
|
||||||
|
;
|
||||||
|
|
||||||
COPY files/pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf
|
COPY files/pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf
|
||||||
# COPY files/postgresql.conf /etc/postgresql/9.5/main/postgresql.conf
|
# COPY files/postgresql.conf /etc/postgresql/9.5/main/postgresql.conf
|
||||||
COPY files/bashrc /root/.bashrc
|
COPY files/bashrc /root/.bashrc
|
||||||
COPY files/vimrc /root/.vimrc
|
COPY files/vimrc /root/.vimrc
|
||||||
|
|
||||||
RUN /etc/init.d/postgresql start \
|
RUN set -ex; \
|
||||||
|
/etc/init.d/postgresql start \
|
||||||
&& createuser -U postgres -sl uxbox \
|
&& createuser -U postgres -sl uxbox \
|
||||||
&& createdb -U uxbox uxbox \
|
&& createdb -U uxbox uxbox \
|
||||||
&& createdb -U uxbox test \
|
&& createdb -U uxbox test \
|
||||||
|
@ -71,10 +71,13 @@ EXPOSE 3449
|
||||||
EXPOSE 6060
|
EXPOSE 6060
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
||||||
RUN useradd -m -g users -s /bin/bash uxbox; \
|
RUN set -ex; \
|
||||||
|
useradd -m -g users -s /bin/bash uxbox; \
|
||||||
passwd uxbox -d; \
|
passwd uxbox -d; \
|
||||||
echo "uxbox ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
|
echo "uxbox ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
|
|
||||||
USER uxbox
|
USER uxbox
|
||||||
|
WORKDIR /home/uxbox
|
||||||
|
|
||||||
COPY files/lein /home/uxbox/.local/bin/lein
|
COPY files/lein /home/uxbox/.local/bin/lein
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue