Skip to content

Instantly share code, notes, and snippets.

View ranabhat's full-sized avatar
🎯
Focusing

Paribesh Ranabhat ranabhat

🎯
Focusing
View GitHub Profile
@ranabhat
ranabhat / Dockerfile
Created January 20, 2023 07:36 — forked from BretFisher/Dockerfile
Multi-stage Dockerfile example of installing dependencies with COPY --from
# any images you use later, add them here first to create aliases
# I like keeping all my versions at the top
FROM node:14.3-slim as node
FROM php:7.2.1-fpm-slim as php
FROM nginx:1.17 as nginx
# The real base image to start from
FROM ubuntu:focal-20210827 as base
# install apt stuff
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())