This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:8.4-alpine | |
| LABEL maintainer="Ryan Durham <[email protected]>" | |
| # Set up a www-data user with UID 1000 and GID 1000 | |
| ARG NAME=www-data | |
| ENV NAME=${NAME} | |
| RUN deluser www-data && \ | |
| adduser -s /bin/sh -D -u 1000 -g '' ${NAME} ${NAME} && \ | |
| chown -R ${NAME}:${NAME} /home/${NAME} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Migrate a postgres SQL file to a format that can be ingested by sqlite | |
| // Generated by cursor | |
| if ($argc !== 2) { | |
| die("Usage: php pg_to_sqlite.php <input_file>\n"); | |
| } | |
| $inputFile = $argv[1]; |
OlderNewer