feat: init, add repo info and some Dockerfiles

python with pip
static sites that use npm
main
CrimsonTome 2023-02-07 15:53:26 +00:00 committed by Rowan Clark
commit b2aa85ed4d
No known key found for this signature in database
GPG Key ID: F620D51904044094
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM python:3.11-rc-alpine
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
CMD ["python", "./path/to/entrypoint.py"]

View File

@ -0,0 +1,14 @@
FROM node:18-alpine3.17 as npmpackages
WORKDIR /app
COPY package.json .
RUN npm install
FROM node:18-alpine3.17 as builder
WORKDIR /app
COPY --from=npmpackages /app /app
COPY . .
RUN npm run build
FROM nginx:stable-alpine
RUN rm -r /usr/share/nginx/html/
COPY --from=builder /app/_site/ /usr/share/nginx/html/

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE
Version 1, October 2013
Copyright © 2023 CrimsonTome <crimsontome427@protonmail.com>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO BUT IT'S NOT MY FAULT PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
1. Do not hold the author(s), creator(s), developer(s) or distributor(s) liable for anything that happens or goes wrong with your use of the work.

40
README.md Normal file
View File

@ -0,0 +1,40 @@
# Dockerfiles
> A collection of Dockerfile templates I use
- [Dockerfiles](#Dockerfiles)
- [System requirements](#system-requirements)
- [Development](#development)
- [Building/Running](#buildingrunning)
- [Docker](#Docker)
- [Contributing](#contributing)
- [Changelog](#changelog)
- [License](#license)
## System requirements
- Docker
## Development
steps here
## Building/Running
### Docker
steps here
## Contributing
TODO: Add contributing guidelines
## Changelog
- generate the changelog with `./changelog.sh` or `bash /path/to/changelog.sh` (requires bash)
- See the [Changelog](/CHANGELOG.md)
## License
Dockerfiles is released under the WTFNMFPL-1.0 License. The full license text is included in the [LICENSE](LICENSE) file in this repository. Tldr legal have a [great summary](https://tldrlegal.com/license/do-what-the-fuck-you-want-to-but-it's-not-my-fault-public-license-v1-(wtfnmfpl-1.0)) of the license if you're interested.