This file contains 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
# syntax=docker/dockerfile:1 | |
# Comments are provided throughout this file to help you get started. | |
# If you need more help, visit the Dockerfile reference guide at | |
# https://docs.docker.com/go/dockerfile-reference/ | |
# Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7 | |
ARG PYTHON_VERSION=3.12 | |
FROM python:${PYTHON_VERSION}-slim as base |
This file contains 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
# https://taskfile.dev | |
version: '3' | |
tasks: | |
default: | |
cmds: | |
- go build -o nats-server -trimpath -ldflags="-s -w -buildid=" . | |
env: | |
GOOS: linux |
This file contains 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
#!/usr/bin/env python | |
# coding=utf-8 | |
from __future__ import absolute_import, division, print_function | |
import datetime | |
import time | |
from mongoengine import (DateTimeField, Document, ListField, StringField, | |
connect) |
This file contains 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
apt-get update | |
apt-get upgrade | |
groupadd www | |
useradd -s /sbin/nologin -g www www | |
mkdir -p /home/wwwroot/default | |
chmod +w /home/wwwroot/default | |
mkdir -p /home/wwwlogs | |
chmod 777 /home/wwwlogs | |
touch /home/wwwlogs/nginx_error.log | |
apt-get install -y mysql-server mysql-client vim |