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
// @ts-check | |
// server.js | |
const { createServer } = require("https"); | |
const fs = require("fs").promises; | |
const { parse } = require("url"); | |
const next = require("next").default; | |
const hostname = "localhost"; | |
const port = 3000; | |
const app = next({ dev: true, hostname, port }); |
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 | |
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact | |
ARG GOLANG_IMAGE=golang:1.18-alpine | |
ARG PYTHON_IMAGE=python:3.9-alpine | |
FROM ${GOLANG_IMAGE} AS golang | |
# installing golang into a python image because it's less hassle | |
# than the other way around |