This file contains hidden or 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
# Use an official PostgreSQL image as the base image | |
FROM postgres:13.12-bullseye | |
# Automate interactive shell | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Update index/packages | |
RUN apt update | |
RUN apt upgrade -y |
This file contains hidden or 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
public async Task<IActionResult> OnPostAsync(string opt, string value) | |
{ | |
ProcessStartInfo start = new ProcessStartInfo(); | |
start.FileName = "python/python-3.8.0-embed-amd64/python.exe"; | |
start.Verb = "runas"; | |
start.Arguments = $"python/backend.py {opt} {value}"; | |
start.UseShellExecute = false; | |
start.RedirectStandardOutput = true; | |
using (Process process = Process.Start(start)) | |
{ |