@@ -645,7 +645,7 @@ defaultContainerConfig imageName = ContainerConfig {
645645 , cmd=[]
646646 , volumes=[]
647647 , workingDir=Nothing
648− , entrypoint=NoEntrypoint
648+ , entrypoint=Entrypoint []
649649 , networkDisabled=Nothing
650650 , macAddress=Nothing
651651 , labels=[]
@@ -1388,10 +1388,9 @@ instance {-# OVERLAPPING #-} ToJSON [ExposedPort] where
13881388 where key (ExposedPort p t) = show p <> slash <> show t
13891389 slash = T.unpack "/"
13901390
1391−data Entrypoint = Entrypoint [T.Text] | NoEntrypoint deriving (Eq, Show, Generic)
1391+data Entrypoint = Entrypoint [T.Text] deriving (Eq, Show, Generic)
13921392
13931393instance ToJSON Entrypoint where
1394− toJSON NoEntrypoint = JSON.Null
13951394 toJSON (Entrypoint (e:es)) = toJSON (e:es)
13961395 toJSON (Entrypoint []) = JSON.Null
13971396
@@ -1399,10 +1398,8 @@ instance FromJSON Entrypoint where
13991398 parseJSON (JSON.String e) = return $ Entrypoint [e]
14001399 parseJSON (JSON.Array ar) = do
14011400 arr <- mapM parseJSON (V.toList ar)
1402− case arr of
1403− [] -> return NoEntrypoint
1404− (e:es) -> return $ Entrypoint (e:es)
1405− parseJSON JSON.Null = return NoEntrypoint
1401+ return $ Entrypoint arr
1402+ parseJSON JSON.Null = return $ Entrypoint []
14061403 parseJSON _ = fail "Failed to parse Entrypoint"
14071404
14081405