Skip to content

Instantly share code, notes, and snippets.

@lyf2000
lyf2000 / Dockerfile
Created November 5, 2024 15:08
docker compose build with ssh clone, install from private git repo
# Docs: https://docs.docker.com/reference/dockerfile/#run---mounttypessh
# req.txt: pckgname @ git+ssh://[email protected]/<repo>.git@<version if need>
# in terminal:
# syntax=docker/dockerfile:1
FROM python:3.12-alpine AS build
RUN apk add --no-cache git openssh-client
@lyf2000
lyf2000 / page.hmtl
Created October 13, 2024 10:15
js html record voice aend socket
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voice Recorder</title>
<link rel="stylesheet" href="style.css">
</head>
@lyf2000
lyf2000 / docker-compose.yml
Last active November 4, 2024 09:02
Install google chrome to use with docker python:3.12.3-bookworm selenium==4.22.0
version: '3'
services:
app:
build:
context: .
dockerfile: ./python.selenium.Dockerfile
command: python main.py
depends_on:
- selenium