regen-endpoint #2

Merged
anomalist merged 2 commits from regen-endpoint into master 2023-12-04 04:32:06 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 8ccefc8b22 - Show all commits

View File

@@ -28,7 +28,7 @@ RUN apk del .build-deps
FROM python:3.8-alpine3.18 as production
# Create a user to run our application
RUN adduser -D myuser
RUN adduser -D myuser -u 1000
# Copy the dependencies and installed packages from the builder image
WORKDIR /app

View File

@@ -6,6 +6,7 @@
export PUSH_SERVER_VERSION=0.1
# This command is also in build.sh
# Note that there is a user with the uid 1000 inside the Dockerfile: make sure that such a user exists on the server and has write access to the database.
docker build --tag py-push-server:amd-$PUSH_SERVER_VERSION --platform linux/amd64 .
docker save -o ~/dl/py-push-server-amd-$PUSH_SERVER_VERSION.tar py-push-server:amd-$PUSH_SERVER_VERSION
@@ -22,7 +23,7 @@ bzip2 -d py-push-server-amd-$PUSH_SERVER_VERSION.tar.bz2
sudo docker load -i py-push-server-amd-$PUSH_SERVER_VERSION.tar
sudo docker run -d -p 8900:3000 -v ~/py-push-server-db:/srv/py-push-server/data --name py-push-server-$PUSH_SERVER_VERSION py-push-server:amd-$PUSH_SERVER_VERSION
sudo docker run -d -p 8900:3000 -v ~/py-push-server-db:/app/instance/data --name py-push-server-$PUSH_SERVER_VERSION py-push-server:amd-$PUSH_SERVER_VERSION
```