Skip to content

Commit

Permalink
fix docker: add ubuntu-22.04-pg-dev image (take 3)
Browse files Browse the repository at this point in the history
commit_hash:229acb1fbe72f1a0e4a7454d8e81595f26f67e11
  • Loading branch information
Anton3 committed Jan 22, 2025
1 parent dd5bfc4 commit d8e1dec
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion scripts/docker/ubuntu-22.04-pg-dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
FROM ghcr.io/userver-framework/ubuntu-22.04-userver-pg:latest
FROM ghcr.io/userver-framework/ubuntu-22.04-userver-base:latest

# Setup clang toolchain, add "user" user
COPY scripts/docker/setup-dev.sh /userver_tmp/
RUN /userver_tmp/setup-dev.sh && rm -rf /userver_tmp

# Install postgresql server
RUN \
apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends \
postgresql-14 \
pycodestyle \
&& \
apt clean all

# Build and install userver
COPY ./ /app/userver

RUN ( \
cd /app/userver \
&& PACKAGE_OPTIONS='-D CPACK_DEBIAN_PACKAGE_DEPENDS=libc6' ./scripts/build_and_install_all.sh \
&& rm -rf /app/userver \
)

EXPOSE 8080-8100

0 comments on commit d8e1dec

Please sign in to comment.